2023-07-30 09:30:01 +00:00
|
|
|
import type { ParseTree } from "$sb/lib/tree.ts";
|
|
|
|
import { parse } from "../../common/markdown_parser/parse_tree.ts";
|
2024-01-24 12:34:12 +00:00
|
|
|
import { extendedMarkdownLanguage } from "../../common/markdown_parser/parser.ts";
|
2023-07-30 09:30:01 +00:00
|
|
|
|
|
|
|
export function parseMarkdown(text: string): ParseTree {
|
2024-01-24 12:34:12 +00:00
|
|
|
return parse(extendedMarkdownLanguage, text);
|
2023-07-30 09:30:01 +00:00
|
|
|
}
|