cerebrate/templates/element/genericElements/mermaid.php

5 lines
196 B
PHP

<pre class="mermaid"><?= $data ?></pre>
<script type="module">
import mermaid from '/js/node_modules/mermaid/dist/mermaid.esm.min.mjs';
mermaid.initialize({ startOnLoad: true });
</script>