Skip to content

Mermaid rendering issues on mkdocs build #7126

Answered by dominik4545
dominik4545 asked this question in Q&A
Discussion options

You must be logged in to vote

Found and fixed it:
The documentation has an issue which just occurs when the site is exported.

  1. You need to install the mkdocs-mermaid2-plugin
  2. The configuration of the fence needs to be adjusted:
  - pymdownx.superfences:
      custom_fences:
        - name: mermaid
          class: mermaid
          format: !!python/name:mermaid2.fence_mermaid

in addition to the plugins

plugins:
  - search:
      lang: en
  - mermaid2

Replies: 2 comments 9 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by dominik4545
Comment options

alexvoss
Apr 30, 2024
Collaborator Sponsor

You must be logged in to vote
9 replies
@squidfunk
Comment options

@dominik4545
Comment options

@alexvoss
Comment options

alexvoss Apr 30, 2024
Collaborator Sponsor

@dominik4545
Comment options

@alexvoss
Comment options

alexvoss Apr 30, 2024
Collaborator Sponsor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants