Fixes #100 implements a custom Markdown renderer
This commit is contained in:
@@ -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,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
|
||||
|
||||
Reference in New Issue
Block a user