Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug: fix https://github.com/siyuan-note/siyuan/issues/5814

Vanessaa2c3c8c56f47
diff --git a/app/src/protyle/util/processCode.ts b/app/src/protyle/util/processCode.ts
index 198bf24a6e..0b79ca2252 100644
--- a/app/src/protyle/util/processCode.ts
+++ b/app/src/protyle/util/processCode.ts
@@ -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);