1
0
silverbullet/plugs/core/debug.ts
2023-07-26 11:22:10 +02:00

21 lines
409 B
TypeScript

import { debug, 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,
),
);
}
export async function resetClientCommand() {
await debug.resetClient();
}
export async function reloadUICommand() {
await editor.reloadUI();
}