histoire
Version:
A fast story book powered by Vite
10 lines (9 loc) • 468 B
JavaScript
import { getContextRegistry } from '../runtime/registry.js';
/** Registers Markdown changes with explicit context ownership. */
export function onMarkdownListChange(ctx, handler) {
return getContextRegistry(ctx).events.on('markdownListChanged', handler);
}
/** Announces complete parsing/association changes only to the owning project. */
export function notifyMarkdownListChange(ctx) {
getContextRegistry(ctx).events.emit('markdownListChanged', undefined);
}