PrismHooks
Unofficial
Prism hook system for extending highlighting behavior.
Import:
import type { PrismHooks } from '@obsidian-typings/obsidian-public-latest';Signature:
export interface PrismHooksProperties
| Property | Type | Description | |
|---|---|---|---|
| all | HookTypes | All registered hooks. |
Methods
| Method | Returns | Description | |
|---|---|---|---|
| add(name, callback) | void | Registers a callback for a hook. | |
| run(name, env) | void | Runs all callbacks registered for a hook. |
Links to this page: