mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
This commit is contained in:
@@ -46,7 +46,7 @@ export const processPasteCode = (html: string, text: string) => {
|
||||
|
||||
export const processRender = (previewPanel: Element) => {
|
||||
const language = previewPanel.getAttribute("data-subtype");
|
||||
if (!language) {
|
||||
if (!["abc", "plantuml", "mermaid", "flowchart", "echarts", "mindmap", "graphviz", "math"].includes(language)) {
|
||||
abcRender(previewPanel);
|
||||
plantumlRender(previewPanel);
|
||||
mermaidRender(previewPanel);
|
||||
|
||||
Reference in New Issue
Block a user