1
0
silverbullet/plugs/editor/debug.ts
2023-08-28 17:12:15 +02:00

21 lines
393 B
TypeScript

import { debug, editor, markdown } from "$sb/syscalls.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();
}