Skip to content

是否有 mermaid 支持? #299

Description

@lucmann

描述

不知道是网络原因,还是其它问题,mermaid diagram 有时渲染得出来,有时却出不来(同一个 diagram)

image

主题配置

mermaid:
  version: "11.2.1"
  enable: true
  theme: forest
  options:
    startOnload: true

mermaid.swig

{%- if theme.mermaid.enable -%}
  <script src='https://unpkg.com/mermaid@{{ theme.mermaid.version }}/dist/mermaid.min.js'></script>
  <script>
    if (window.mermaid) {
      mermaid.initialize({{ JSON.stringify(theme.mermaid.options) }});    
    }
  </script>
{%- endif -%}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions