2024-08-07 02:11:38 +08:00
|
|
|
import { debug, editor, markdown } from "@silverbulletmd/silverbullet/syscalls";
|
2022-05-09 20:59:12 +08:00
|
|
|
|
|
|
|
export async function parsePageCommand() {
|
2022-07-04 21:51:04 +08:00
|
|
|
console.log(
|
|
|
|
"AST",
|
2022-10-14 21:11:33 +08:00
|
|
|
JSON.stringify(
|
|
|
|
await markdown.parseMarkdown(await editor.getText()),
|
|
|
|
null,
|
|
|
|
2,
|
|
|
|
),
|
2022-07-04 21:51:04 +08:00
|
|
|
);
|
2022-05-09 20:59:12 +08:00
|
|
|
}
|
2023-07-14 18:15:10 +08:00
|
|
|
|
|
|
|
export async function resetClientCommand() {
|
|
|
|
await debug.resetClient();
|
|
|
|
}
|
2023-07-26 17:22:10 +08:00
|
|
|
|
|
|
|
export async function reloadUICommand() {
|
|
|
|
await editor.reloadUI();
|
|
|
|
}
|