Search code examples
mkdocsmermaid

Mkdocs "can not display mermaid in the right way"


I try to use this theme plugin to display the graph

Link: https://squidfunk.github.io/mkdocs-material/reference/diagrams/?h=mermaid

the settings file:

- pymdownx.superfences:
      custom_fences:
        - name: mermaid
          class: mermaid-experimental
          format: !!python/name:pymdownx.superfences.fence_code_format
extra_javascript:
  - https://unpkg.com/[email protected]/dist/mermaid.min.js

all i got is this.. enter image description here

i dont think it is version problem

Has anyone got any suggestions?thanks


Solution

  • This was part of the insiders offer at your time. If you upgrade your mkdocs-material version it should work.

    https://squidfunk.github.io/mkdocs-material/insiders/