New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mermaid diagrams are not rendering when viewed via file://
#3560
Comments
Thanks for reporting. Does the browser console show any errors or warnings? |
I've attached the rendered static website. Maybe that helps so you can have a deep look yourself. Hope the upload doesn't violate any github rules. |
Thanks. I've found the problem:
You're viewing it locally and the current integration doesn't work on |
file://
Fixed in Explanation: the problem was that the CSS was loaded dynamically using |
Released as part of 8.1.11-insiders-4.8.3. |
Just getting back to this now. Looks nice. Thanks for the quick fix! |
Contribution guidelines
I've found a bug and checked that ...
mkdocs
orreadthedocs
themescustom_dir
,extra_javascript
andextra_css
Description
I have tried the configuration of the docs (https://squidfunk.github.io/mkdocs-material/reference/diagrams/#configuration) but the diagram does not render.
The math formulas do render though.
Expected behaviour
Rendered diagrams.
Actual behaviour
No rendering of the mermaid diagram. No matter if the external javascript is additionally enabled or not (the docs mention it should not be necessary to add this javascript entry).
Steps to reproduce
Then run
Package versions
Configuration
System information
Operating system: Linux 5.4.0-87-generic Add documentation how to install using Chocolatey #98~18.04.1-Ubuntu SMP Wed Sep 22 10:45:04 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Browser: Firefox 93.0 (64-bit)
The text was updated successfully, but these errors were encountered: