Skip to content

Commit

Permalink
Added registerExternalDiagram for Mindmap
Browse files Browse the repository at this point in the history
  • Loading branch information
pbrolin47 committed Nov 9, 2022
1 parent 2f9d6e0 commit 9bb0ed2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
<script type="module">
import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid@9/dist/mermaid.esm.min.mjs';
import mindmap from 'https://cdn.jsdelivr.net/npm/@mermaid-js/mermaid-mindmap@9/dist/mermaid-mindmap.esm.mjs';
await mermaid.registerExternalDiagrams([mindmap]);

window.mermaid = mermaid;
const isDarkMode = window.matchMedia('(prefers-color-scheme: dark)').matches;
Expand Down
1 change: 1 addition & 0 deletions packages/mermaid/src/docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
<script type="module">
import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid@<MERMAID_VERSION>/dist/mermaid.esm.min.mjs';
import mindmap from 'https://cdn.jsdelivr.net/npm/@mermaid-js/mermaid-mindmap@<MERMAID_VERSION>/dist/mermaid-mindmap.esm.mjs';
await mermaid.registerExternalDiagrams([mindmap]);

window.mermaid = mermaid;
const isDarkMode = window.matchMedia('(prefers-color-scheme: dark)').matches;
Expand Down

0 comments on commit 9bb0ed2

Please sign in to comment.