1
0
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-03 16:12:16 +00:00
export function markdownSyscalls(): SysCallMapping {
2022-04-04 09:51:41 +00:00
return {
"markdown.parseMarkdown": (ctx, text: string): MarkdownTree => {
return parse(text);
},
};
2022-04-03 16:12:16 +00:00
}