2023-01-16 09:40:16 +00:00
|
|
|
import { editor, markdown } from "$sb/silverbullet-syscall/mod.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-05-29 07:56:47 +00:00
|
|
|
|
|
|
|
export async function resetClientCommand() {
|
|
|
|
editor.openUrl("/.client/reset.html");
|
|
|
|
}
|