2022-04-06 13:39:20 +00:00
|
|
|
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
|
|
|
}
|