Reapplied all the things
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import {SysCallMapping} from "../../plugos/system";
|
||||
import {MarkdownTree, nodeAtPos, parse, render} from "../tree";
|
||||
|
||||
export function markdownSyscalls(): SysCallMapping {
|
||||
return {
|
||||
parse(ctx, text: string): MarkdownTree {
|
||||
return parse(text);
|
||||
},
|
||||
nodeAtPos(ctx, mdTree: MarkdownTree, pos: number): MarkdownTree | null {
|
||||
return nodeAtPos(mdTree, pos);
|
||||
},
|
||||
render(ctx, mdTree: MarkdownTree): string {
|
||||
return render(mdTree);
|
||||
},
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user