mdast-util-wiki-link
Version:
Parse and render wiki-style links
19 lines (18 loc) • 560 B
TypeScript
interface FromMarkdownOptions {
permalinks?: string[];
pageResolver?: (name: string) => string[];
newClassName?: string;
wikiLinkClassName?: string;
hrefTemplate?: (permalink: string) => string;
}
declare function fromMarkdown(opts?: FromMarkdownOptions): {
enter: {
wikiLink: (this: any, token: any) => void;
};
exit: {
wikiLinkTarget: (this: any, token: any) => void;
wikiLinkAlias: (this: any, token: any) => void;
wikiLink: (this: any, token: any) => void;
};
};
export { fromMarkdown };