UNPKG

@vivliostyle/vfm

Version:

Custom Markdown syntax specialized in book authoring.

9 lines (8 loc) 257 B
import { Node } from 'unist'; export interface ReplaceRule { test: RegExp; match: (result: RegExpMatchArray, h: any) => Node | string; } export declare function replace({ rules }?: { rules?: ReplaceRule[]; }): ((tree: Node) => any) | undefined;