1
0
silverbullet/plugs/core/debug.ts
2023-06-13 20:47:05 +02:00

13 lines
253 B
TypeScript

import { editor, markdown } from "$sb/silverbullet-syscall/mod.ts";
export async function parsePageCommand() {
console.log(
"AST",
JSON.stringify(
await markdown.parseMarkdown(await editor.getText()),
null,
2,
),
);
}