diff --git a/package.json b/package.json index 5253857f7..de4573112 100644 --- a/package.json +++ b/package.json @@ -66,7 +66,7 @@ "joplin-turndown-plugin-gfm": "^1.0.12", "katex": "^0.15.3", "keytar": "^7.9.0", - "mermaid": "^9.2.2", + "mermaid": "^10.6.1", "minizlib": "^2.1.2", "native-keymap": "^3.3.0", "plist": "^3.0.4", diff --git a/src/muya/lib/renderers/index.js b/src/muya/lib/renderers/index.js index 6d4015e9b..89ba15750 100644 --- a/src/muya/lib/renderers/index.js +++ b/src/muya/lib/renderers/index.js @@ -20,7 +20,7 @@ const loadRenderer = async (name) => { rendererCache.set(name, m.default) break case 'mermaid': - m = await import('mermaid/dist/mermaid.min.js') + m = await import('mermaid/dist/mermaid.core.mjs') rendererCache.set(name, m.default) break case 'vega-lite':