1
0
silverbullet/common/syscalls/markdown.ts

11 lines
275 B
TypeScript

import { SysCallMapping } from "../../plugos/system";
import { MarkdownTree, parse } from "../tree";
export function markdownSyscalls(): SysCallMapping {
return {
"markdown.parseMarkdown": (ctx, text: string): MarkdownTree => {
return parse(text);
},
};
}