silverbullet/common/syscalls/markdown.ts

11 lines
275 B
TypeScript
Raw Normal View History

import { SysCallMapping } from "../../plugos/system";
import { MarkdownTree, parse } from "../tree";
2022-04-04 00:12:16 +08:00
export function markdownSyscalls(): SysCallMapping {
2022-04-04 17:51:41 +08:00
return {
"markdown.parseMarkdown": (ctx, text: string): MarkdownTree => {
return parse(text);
},
};
2022-04-04 00:12:16 +08:00
}