1
0
silverbullet/plug-api/lib/test_utils.ts
2023-07-30 11:30:01 +02:00

9 lines
314 B
TypeScript

import wikiMarkdownLang from "../../common/markdown_parser/parser.ts";
import type { ParseTree } from "$sb/lib/tree.ts";
import { parse } from "../../common/markdown_parser/parse_tree.ts";
export function parseMarkdown(text: string): ParseTree {
const lang = wikiMarkdownLang([]);
return parse(lang, text);
}