You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mermaid diagram is not rendered; the produced HTML document shows the mermaid code in raw text.
After investigation, it appears the error comes from a bad ordering of the script directive in the HTML file, caused by a side-effect when sphinxcontrib.mermaid is used with other sphinx extensions.
In my case (from conf.py file):
I am facing the same issue. @KenwoodFox you say that re-ordering plugins fixed it for you. Do you mean changing the position of "sphinxcontrib.mermaid" in the extensions list in conf.py? If so, how did you change the order to fix this issue?
Mermaid diagram is not rendered; the produced HTML document shows the mermaid code in raw text.
After investigation, it appears the error comes from a bad ordering of the script directive in the HTML file, caused by a side-effect when
sphinxcontrib.mermaid
is used with other sphinx extensions.In my case (from
conf.py
file):I join two versions of a minimal example, where the relevant script directives have been swapped (one OK, the other buggy).
example.zip
By fiddling around with the code, I found that lowering priority (from 500 to 100, say) did the job, in:
sphinxcontrib-mermaid/sphinxcontrib/mermaid.py
Lines 509 to 510 in 6f8de39
However, this is not a satisfying solution. As it turns out, the solution proposed in #76 works perfectly, and is much more robust.
The text was updated successfully, but these errors were encountered: