test: Add flowchart-elk overriding test

This commit is contained in:
Sidharth Vinod
2023-11-23 22:41:22 +05:30
parent 30fe363b57
commit c294a0a9ac
2 changed files with 37 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
<html>
<body>
<pre class="mermaid">
flowchart-elk
a[hello] --> b[world]
b --> c{test}
c --> one
c --> two
c --> three
</pre>
<script type="module">
import mermaid from './mermaid.esm.mjs';
import elk from './mermaid-flowchart-elk.esm.mjs';
if (window.location.search.includes('elk')) {
await mermaid.registerExternalDiagrams([elk]);
}
mermaid.initialize({
logLevel: 3,
});
</script>
</body>
</html>