From 7fb62cea908a0be5fd9aad307fbb455bd99aba14 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Thu, 2 Jun 2022 09:57:22 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/issues/5074 --- app/src/protyle/markdown/mermaidRender.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/src/protyle/markdown/mermaidRender.ts b/app/src/protyle/markdown/mermaidRender.ts index 88ac663d9..8543369c8 100644 --- a/app/src/protyle/markdown/mermaidRender.ts +++ b/app/src/protyle/markdown/mermaidRender.ts @@ -20,10 +20,7 @@ export const mermaidRender = (element: Element, cdn = Constants.PROTYLE_CDN) => } addScript(`${cdn}/js/mermaid/mermaid.min.js?v=0.0.0`, "protyleMermaidScript").then(() => { const config: any = { - // https://github.com/siyuan-note/siyuan/issues/3587 - // graph LR - // id1[""] - // securityLevel: "loose", 如上会 xss + securityLevel: "loose", // 升级后无 https://github.com/siyuan-note/siyuan/issues/3587,可使用该选项 altFontFamily: "sans-serif", fontFamily: "sans-serif", startOnLoad: false,