Fixes #100 implements a custom Markdown renderer

This commit is contained in:
Zef Hemel
2022-11-01 15:01:28 +01:00
parent b8e27b216e
commit 3d671e8195
20 changed files with 652 additions and 37 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
import type { ParseTree } from "./lib/tree.ts";
import { ParsedQuery } from "./lib/query.ts";
import type { ParseTree } from "$sb/lib/tree.ts";
import { ParsedQuery } from "$sb/lib/query.ts";
export type AppEvent =
| "page:click"
+2 -2
View File
@@ -87,8 +87,8 @@ export function replaceRange(
return syscall("editor.replaceRange", from, to, text);
}
export function moveCursor(pos: number): Promise<void> {
return syscall("editor.moveCursor", pos);
export function moveCursor(pos: number, center = false): Promise<void> {
return syscall("editor.moveCursor", pos, center);
}
export function insertAtCursor(text: string): Promise<void> {
+1 -1
View File
@@ -1,4 +1,4 @@
import { syscall } from "./syscall.ts";
import { syscall } from "$sb/silverbullet-syscall/syscall.ts";
import type { ParseTree } from "$sb/lib/tree.ts";