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
macos livereloadjs can't loaded,mermaid graph render failed #3596
Comments
Thanks for reporting. I'm not able to reproduce. Please provide a minimal reproducible example. |
this is my code Archive file:https://github.com/phygerr/forMKDocsBUG/blob/main/myDemo.zip |
when i modified |
I can reproduce the error. The problem is that the headline element will receive an mermaid
// => <h2 id="mermaid">这是mermaid图表</h2> I'm shocked, as I've never heard that browsers do that in the 16 years that I do web development, but it's the reason why the Mermaid.js integration fails to mount. I think this problem is not solvable, as what we're doing is to check whether Mermaid.js has already been defined by the author, which is done by checking the global scope for a variable called Thus, you cannot have a headline that produces an Mitigation You can mitigate the issue by specifying an explicit ## 这是mermaid图表 { #something-else } |
Turns out, we can fix it. Fixed in cfa6474. |
Contribution guidelines
I've found a bug and checked that ...
mkdocs
orreadthedocs
themescustom_dir
,extra_javascript
andextra_css
Description
macos livereloadjs can't loaded,always loading... so the mermaid graph render failed。
OS:mac Monterey
Python Version:3.8.9
I use chrome and safari , they all can't
mermaid code
web page
Expected behaviour
mermaid graph render success
Actual behaviour
mermaid graph render failed
Steps to reproduce
mkdocs new demo
config mermaid
mkdocs serve to preview
Package versions
Configuration
System information
The text was updated successfully, but these errors were encountered: