Mermaid stopped working on Github #8011
-
My mermaid diagrams have suddenly stopped being rendered on Github. But they are visible on my internal server: a) Github b) Internal server The mkdocs.yml has not been changed and is as described on material's web: There is a message on VS Code (my editor) finding a problem with the fences: "MD046/code-block-style: Code block style [Expected: indented; Actual: fenced]" This is my mermaid code: The change affects all my mermaid diagrams across my Github site and it is independent from the browser (Safari, Firefox, Chrome). |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
There is a difference between Github version and that on my internal server. Github's version cannot load the JS calling mermaid, but the internal server does. a) Github b) Internal server Do you know the possible reason? Thanks in advance. |
Beta Was this translation helpful? Give feedback.
-
For some reason mermaid.min.js didn't appear in my site folder. extra_javascript:
Now everything works, although I don't understand why it stopped working. |
Beta Was this translation helpful? Give feedback.
For some reason mermaid.min.js didn't appear in my site folder.
Therefore I've created a folder in docs and uploaded version 10.9.1 of mermaid.min.js.
As explained in material page (https://squidfunk.github.io/mkdocs-material/customization/), I've aded this piece of code to the mkdocs.yml:
extra_javascript:
Now everything works, although I don't understand why it stopped working.
I hope this helps if someone meets this problem in the future.