/** Markdown block */ export type HmmBlock = { type: string; lines: Array; matches: Array; render: string; }; /** Markdown block plugin */ export type BlockPlugin = { type: string; multiline: boolean; render: (block: HmmBlock, options: HmmOptions) => string; matchStart: (line: string, index: number) => boolean | Array; matchEnd?: (line: string) => boolean; }; /** Markdown inline plugin */ export type InlinePlugin = { type: string; render: (text: string, options: HmmOptions) => string; }; /** Markdown block stream options */ export type HmmOptions = { blockPlugins: Map; inlinePlugins: Map; inlineTags: Set; };