Skip to content

Commit

Permalink
Merge pull request #6055 from agokhale/no-dev-elk-import
Browse files Browse the repository at this point in the history
Use layout-elk in example.html
  • Loading branch information
sidharthv96 authored Nov 27, 2024
2 parents 0dff4ca + 4e17da0 commit 95964b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions demos/dev/example.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@

<script type="module">
import mermaid from '/mermaid.esm.mjs';
import flowchartELK from '/mermaid-flowchart-elk.esm.mjs';
await mermaid.registerExternalDiagrams([flowchartELK]);
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 95964b5

Please sign in to comment.