Robustness and federation sync

This commit is contained in:
Zef Hemel
2023-07-30 11:30:01 +02:00
parent afa160d2c2
commit b584e2ef7e
11 changed files with 264 additions and 110 deletions
+8
View File
@@ -0,0 +1,8 @@
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);
}