1
0
silverbullet/common/syscalls/markdown.ts

11 lines
271 B
TypeScript
Raw Normal View History

2022-04-03 16:12:16 +00:00
import {SysCallMapping} from "../../plugos/system";
2022-04-04 09:51:41 +00:00
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
}