Fixes #100 implements a custom Markdown renderer
This commit is contained in:
@@ -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,4 +1,4 @@
|
||||
import { syscall } from "./syscall.ts";
|
||||
import { syscall } from "$sb/silverbullet-syscall/syscall.ts";
|
||||
|
||||
import type { ParseTree } from "$sb/lib/tree.ts";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user