Skip to content

Commit

Permalink
upgrade to mermaid 10 (#3734)
Browse files Browse the repository at this point in the history
with 'mindmap' support
  • Loading branch information
ivy-rew committed Mar 19, 2024
1 parent 4fef449 commit cd84529
Show file tree
Hide file tree
Showing 3 changed files with 477 additions and 404 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"joplin-turndown-plugin-gfm": "^1.0.12",
"katex": "^0.15.3",
"keytar": "^7.9.0",
"mermaid": "^9.0.0",
"mermaid": "^10.0.0",
"minizlib": "^2.1.2",
"native-keymap": "^3.3.0",
"plist": "^3.0.5",
Expand Down
2 changes: 1 addition & 1 deletion src/muya/lib/renderers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const loadRenderer = async (name) => {
rendererCache.set(name, m.default)
break
case 'mermaid':
m = await import('mermaid/dist/mermaid.core.js')
m = await import('mermaid/dist/mermaid.core.mjs')
rendererCache.set(name, m.default)
break
case 'vega-lite':
Expand Down

0 comments on commit cd84529

Please sign in to comment.