2023-11-23 22:41:22 +05:30
|
|
|
<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';
|
2023-11-24 10:54:43 +05:30
|
|
|
import elk from './mermaid-flowchart-elk.esm.min.mjs';
|
2023-11-23 22:41:22 +05:30
|
|
|
if (window.location.search.includes('elk')) {
|
|
|
|
await mermaid.registerExternalDiagrams([elk]);
|
|
|
|
}
|
|
|
|
mermaid.initialize({
|
|
|
|
logLevel: 3,
|
2023-11-23 22:51:08 +05:30
|
|
|
startOnLoad: false,
|
2023-11-23 22:41:22 +05:30
|
|
|
});
|
2023-11-23 22:51:08 +05:30
|
|
|
await mermaid.run();
|
|
|
|
if (window.Cypress) {
|
|
|
|
window.rendered = true;
|
|
|
|
}
|
2023-11-23 22:41:22 +05:30
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|