1
0
silverbullet/common/syscalls/markdown.ts
2022-04-04 11:51:41 +02:00

11 lines
271 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);
},
};
}