Skip to content

Commit

Permalink
fix: Add layout-elk in example.html
Browse files Browse the repository at this point in the history
  • Loading branch information
sidharthv96 committed Nov 27, 2024
1 parent 193fdb2 commit 4e17da0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions demos/dev/example.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@

<script type="module">
import mermaid from '/mermaid.esm.mjs';
import layouts from '/mermaid-layout-elk.esm.mjs';
mermaid.registerLayoutLoaders(layouts);
async function render(str) {
const { svg } = await mermaid.render('dynamic', str);
document.getElementById('dynamicDiagram').innerHTML = svg;
Expand Down

0 comments on commit 4e17da0

Please sign in to comment.