mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 17:40:13 +01:00
This commit is contained in:
parent
bfd6378166
commit
a2c3c8c56f
1 changed files with 1 additions and 1 deletions
|
|
@ -46,7 +46,7 @@ export const processPasteCode = (html: string, text: string) => {
|
||||||
|
|
||||||
export const processRender = (previewPanel: Element) => {
|
export const processRender = (previewPanel: Element) => {
|
||||||
const language = previewPanel.getAttribute("data-subtype");
|
const language = previewPanel.getAttribute("data-subtype");
|
||||||
if (!language) {
|
if (!["abc", "plantuml", "mermaid", "flowchart", "echarts", "mindmap", "graphviz", "math"].includes(language)) {
|
||||||
abcRender(previewPanel);
|
abcRender(previewPanel);
|
||||||
plantumlRender(previewPanel);
|
plantumlRender(previewPanel);
|
||||||
mermaidRender(previewPanel);
|
mermaidRender(previewPanel);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue