Skip to content

PrismHooks

Unofficial

Prism hook system for extending highlighting behavior.

Import:

import type { PrismHooks } from '@obsidian-typings/obsidian-public-latest';

Signature:

export interface PrismHooks

Properties

PropertyTypeDescription
allHookTypesAll registered hooks.

Methods

MethodReturnsDescription
add(name, callback)voidRegisters a callback for a hook.
run(name, env)voidRuns all callbacks registered for a hook.

Links to this page: