Skip to content
Discussion options

You must be logged in to vote

Hi @Mister-Hope, I've added documentation for adding mindmaps in #3810

Mindmap uses the experimental lazy loading & async rendering features which could change in the future.

<script type="module">
  import mermaid from 'https://unpkg.com/mermaid@9/dist/mermaid.esm.min.mjs';
  import mindmap from 'https://unpkg.com/@mermaid-js/mermaid-mindmap@9/dist/mermaid-mindmap.esm.min.mjs';
  await mermaid.registerExternalDiagrams([mindmap]);
</script>

You can also refer the implementation in the live editor here to see how the async loading is done.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Mister-Hope
Comment options

Answer selected by sidharthv96
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants