import type { BlockPlugin, HmmBlock, HmmOptions } from "../types.ts"; import { renderNode } from "../render.ts"; /** * @todo Handle nested and indented lists */ const plugin: BlockPlugin = { type: "unorderedList", multiline: true, matchStart: (line: string, index: number): boolean => { if (index > 0 && /^\s{4}[^\s]/.test(line)) return true; if (line[0] !== "*") return false; if (line[1] !== " ") return false; return true; }, render: (block: HmmBlock, options: HmmOptions) => { block.render = ""; return block.render; }, }; export default plugin;