Upgrade mermaid to 10.8.0 (#10373)

This commit is contained in:
Jeffrey Chen 2024-02-19 15:48:18 +08:00 committed by GitHub
parent 85847d1969
commit 83df1111e2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 384 additions and 266 deletions

View file

@ -13,7 +13,7 @@ export const mermaidRender = (element: Element, cdn = Constants.PROTYLE_CDN) =>
if (mermaidElements.length === 0) {
return;
}
addScript(`${cdn}/js/mermaid/mermaid.min.js?v=10.3.0`, "protyleMermaidScript").then(() => {
addScript(`${cdn}/js/mermaid/mermaid.min.js?v=10.8.0`, "protyleMermaidScript").then(() => {
const config: any = {
securityLevel: "loose", // 升级后无 https://github.com/siyuan-note/siyuan/issues/3587可使用该选项
altFontFamily: "sans-serif",

File diff suppressed because one or more lines are too long