Refactor all the things
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
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();
|
||||
}
|
||||
Reference in New Issue
Block a user