Running Mermaid support locally #8101
-
I have installed the package with According to https://squidfunk.github.io/mkdocs-material/reference/diagrams/ this should be the whole setup in my yaml file: site_name: MySite
site_description:
plugins:
- search
nav:
- Home: index.md
markdown_extensions:
- pymdownx.superfences:
custom_fences:
- name: mermaid
class: mermaid
format: !!python/name:pymdownx.superfences.fence_code_format While What am I missing here? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
That's because the custom fence you are doing only formats the code for mermaid to be applied in the browser. If you wanted mermaid to generate diagrams on the backend, you would need a custom fence to call out to the external mermaid process. |
Beta Was this translation helpful? Give feedback.
-
Hi @klausbussekw, And we don't know how you input the meramid code blocks in files. Like Isaac said above, we need a more full reproduction, preferably using the info plugin: |
Beta Was this translation helpful? Give feedback.
-
Complete Example: I navigate to the folder, and start |
Beta Was this translation helpful? Give feedback.
Hi @klausbussekw,
the snippet in OP doesn't include the theme activation:
https://squidfunk.github.io/mkdocs-material/creating-your-site/#configuration
And we don't know how you input the meramid code blocks in files.
Like Isaac said above, we need a more full reproduction, preferably using the info plugin: