no <script> mermaid.initialize(...) </script> in generated pages
See original GitHub issueI just now installed the plugin to MkDocs using pip, so I’m assuming I’m using the latest version.
When starting MkDocs serve, I can see that MERMAID2 is reading my configuration and parsing things like initialization arguments. However. the generated page does not contain:
<script>
mermaid.initialize(...)
</script>
I don’t think i’m doing anything wrong…
My mkdocs.yml
site_name: x
nav:
- Home:
theme: material
plugins:
- search
- mermaid2:
arguments:
theme: 'dark'
extra_javascript:
- https://unpkg.com/mermaid@8.7.0/dist/mermaid.min.js
I added the theme dark there to see whether it would trigger the generationg of mermaid.initialize(). Also I tried the exact version of the mermaid.js that was mentioned in the installation documentatoin.
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (5 by maintainers)
Top Results From Across the Web
mermaid - Generation of diagrams and flowcharts from text in ...
This is why mermaid was born, a simple markdown-like script language for generating charts from text via javascript. Try it using our editor....
Read more >Embed Mermaid in Jekyll without plugin - JackGruber
Mermaid is a simple markdown-like script language for generating charts ... plugin in your Jekyll blog/site which is useful for Github pages.
Read more >Rendering Mermaid Charts - Markdown Monster Documentation
If you're pasting a mermaid chart for the very first time into a document, the chart won't render because the associated script is...
Read more >How to make GitHub Pages Markdown support mermaid ...
I found the solution. <!DOCTYPE html> <html lang="en"> <head> <script ...
Read more >Diagrams | Hugo
Hugo currently does not provide default templates for Mermaid diagrams. ... <script> mermaid.initialize({ startOnLoad: true }); </script> {{ end }}.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This “solved” it for me.
Changed file “plugin.py”, line 168
Obvious question is of course, why did it use class “language-mermaid”…
@nschoot Thanks a lot for your research and for finding the source !
I published the new version on pypi.