UNPKG

@braindb/micromark-extension-wiki-link

Version:
20 lines (19 loc) 640 B
import { type CompileContext, type Token } from "micromark-util-types"; export type WikiLinkHtmlOptions = { permalinks?: string[]; pageResolver?: (name: string) => string[]; newClassName?: string; wikiLinkClassName?: string; hrefTemplate?: (name: string) => string; }; declare function html(opts?: WikiLinkHtmlOptions): { enter: { wikiLink: (this: CompileContext) => void; }; exit: { wikiLinkTarget: (this: CompileContext, token: Token) => void; wikiLinkAlias: (this: CompileContext, token: Token) => void; wikiLink: (this: CompileContext) => void; }; }; export { html };