1
0
silverbullet/plugs/editor/debug.ts

21 lines
393 B
TypeScript
Raw Normal View History

2023-08-28 15:12:15 +00:00
import { debug, editor, markdown } from "$sb/syscalls.ts";
2022-05-09 12:59:12 +00:00
export async function parsePageCommand() {
2022-07-04 13:51:04 +00:00
console.log(
"AST",
2022-10-14 13:11:33 +00:00
JSON.stringify(
await markdown.parseMarkdown(await editor.getText()),
null,
2,
),
2022-07-04 13:51:04 +00:00
);
2022-05-09 12:59:12 +00:00
}
2023-07-14 10:15:10 +00:00
export async function resetClientCommand() {
await debug.resetClient();
}
2023-07-26 09:22:10 +00:00
export async function reloadUICommand() {
await editor.reloadUI();
}