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 -4
View File
@@ -1,13 +1,11 @@
import { editor, space } from "$sb/silverbullet-syscall/mod.ts";
import { invokeFunction } from "$sb/silverbullet-syscall/system.ts";
import { editor, space, system } from "$sb/silverbullet-syscall/mod.ts";
import { renderDirectives } from "./directives.ts";
export async function updateDirectivesOnPageCommand() {
const currentPage = await editor.getCurrentPage();
await editor.save();
if (
await invokeFunction(
await system.invokeFunction(
"server",
"updateDirectivesOnPage",
currentPage,
+1 -1
View File
@@ -1,6 +1,6 @@
// This is some shocking stuff. My profession would kill me for this.
import { YAML } from "../../common/deps.ts";
import * as YAML from "yaml";
import { jsonToMDTable, renderTemplate } from "./util.ts";
// Enables plugName.functionName(arg1, arg2) syntax in JS expressions