Materialized query parser redo

This commit is contained in:
Zef Hemel
2022-04-11 20:34:09 +02:00
parent d649009dd2
commit b3c3302970
31 changed files with 1182 additions and 667 deletions
+2 -2
View File
@@ -2,7 +2,7 @@ import MarkdownIt from "markdown-it";
import { getText, hideRhs, showRhs } from "plugos-silverbullet-syscall/editor";
import * as clientStore from "plugos-silverbullet-syscall/clientStore";
import { parseMarkdown } from "plugos-silverbullet-syscall/markdown";
import { renderMarkdown, replaceNodesMatching } from "../lib/tree";
import { renderToText, replaceNodesMatching } from "../../common/tree";
const css = `
<style>
@@ -79,7 +79,7 @@ export async function cleanMarkdown(text: string) {
return null;
}
});
let html = md.render(renderMarkdown(mdTree));
let html = md.render(renderToText(mdTree));
return html;
}