Sha256: d32c313ab032e569067ee22c32fce4a6e3b1bea4fe40711fa831629778545e2f

Contents?: true

Size: 754 Bytes

Versions: 22

Compression:

Stored size: 754 Bytes

Contents

<!--
  mermaid-js loader
-->

<script src="https://cdn.jsdelivr.net/npm/mermaid@8/dist/mermaid.min.js"></script>
<script>
  $(function() {
    let initTheme = "default";

    if ($("html[mode=dark]").length > 0
      || ($("html[mode]").length == 0
        && window.matchMedia("(prefers-color-scheme: dark)").matches ) ) {
      initTheme = "dark";
    }

    let mermaidConf = {
      theme: initTheme  /* <default|dark|forest|neutral> */
    };

    /* Markdown converts to HTML */
    $("pre").has("code.language-mermaid").each(function() {
      let svgCode = $(this).children().html();
      $(this).addClass("unloaded");
      $(this).after(`<div class=\"mermaid\">${svgCode}</div>`);
    });

    mermaid.initialize(mermaidConf);
  });
</script>

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
jekyll-theme-chirpy-4.3.4 _includes/mermaid.html
jekyll-theme-chirpy-4.3.3 _includes/mermaid.html
jekyll-theme-chirpy-4.3.2 _includes/mermaid.html
jekyll-theme-chirpy-4.3.1 _includes/mermaid.html
jekyll-theme-chirpy-4.3.0 _includes/mermaid.html
jekyll-theme-chirpy-4.2.1 _includes/mermaid.html
jekyll-theme-chirpy-4.2.0 _includes/mermaid.html
jekyll-theme-chirpy-4.1.1 _includes/mermaid.html
jekyll-theme-chirpy-4.1.0 _includes/mermaid.html
jekyll-theme-chirpy-4.0.2 _includes/mermaid.html
jekyll-theme-chirpy-4.0.1 _includes/mermaid.html
jekyll-theme-chirpy-3.3.2 _includes/mermaid.html
jekyll-theme-chirpy-3.3.1 _includes/mermaid.html
jekyll-theme-chirpy-3.3.0 _includes/mermaid.html
jekyll-theme-chirpy-3.2.2 _includes/mermaid.html
jekyll-theme-chirpy-3.2.1 _includes/mermaid.html
jekyll-theme-chirpy-3.2.0 _includes/mermaid.html
jekyll-theme-chirpy-3.1.1 _includes/mermaid.html
jekyll-theme-chirpy-3.1.0 _includes/mermaid.html
jekyll-theme-chirpy-3.0.3 _includes/mermaid.html