mirror of https://github.com/onweru/compose.git

weru
30.45.2023 a2ddf2b329392fd368d23648b23aaecfc6f05f7d
use base theme for mermaid blocks

Signed-off-by: weru <fromweru@gmail.com>
1 files modified
8 ■■■■ changed files
layouts/partials/scripts/other.html 8 ●●●● patch | view | raw | blame | history
layouts/partials/scripts/other.html
@@ -1,7 +1,13 @@
{{ if in .Content "mermaid" }}
<input type="checkbox" class="mermaid-theme">
<script type="module">
  import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.esm.min.mjs';
  mermaid.initialize({ startOnLoad: true, theme: 'dark' });
  function initialize_mermaid(theme = 'base') {
    mermaid.initialize({ startOnLoad: true, theme: theme });
  }
  initialize_mermaid();
</script>
{{ end }}