silverbullet/packages/plugos-silverbullet-syscall/markdown.ts

8 lines
225 B
TypeScript
Raw Normal View History

2022-04-05 23:02:17 +08:00
import { syscall } from "./syscall";
2022-04-04 00:12:16 +08:00
import type { ParseTree } from "../silverbullet-common/tree";
2022-04-12 02:34:09 +08:00
export async function parseMarkdown(text: string): Promise<ParseTree> {
2022-04-04 17:51:41 +08:00
return syscall("markdown.parseMarkdown", text);
2022-04-04 00:12:16 +08:00
}