-
Notifications
You must be signed in to change notification settings - Fork 96
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
sphinxcontrib-mermaid 1.0.0 HTML rendering incorrect compared to 0.9.2 #163
Comments
This is not what it looks like for me, cannot reproduce. Please provide code or if you’re using any customizations. |
Thanks for the quick response, @timkpaine. What does it look like for you? I had included the code in my original issue report but it has been converted to a diagram. I am adding it here again without the back-ticks (hopefully it's readable) mermaid
|
css rule in sphinx-book-theme causing the problem: We render in |
Thank you, @timkpaine. I think your results match mine - at least with the sphinx-book-theme. However, the rendering is still wrong in 1.0.0 - even in Furo - since the connecting lines have arrows. According to the code, there should be no arrows. Whereas, irrespective of the CSS, it works in 0.9.2. The connecting lines have no arrows when using 0.9.2. |
The code should have arrows, I don't see anything wrong. mermaid live link |
Thanks again for looking into this, @timkpaine. I agree that sphinxcontrib-mermaid 1.0.0 is rendering the image just like the mermaid live editor (i.e. with arrows). However, there is an issue in the Mermaid github talking about this exact same issue with arrows. Hopefully, once it's fixed upstream, it'll be fixed here too. |
Here is an example diagram - note that the connectors are arrow-less:
Here's how the HTML renders with sphinxcontrib-mermaid 0.9.2:
However, with 1.0.0, here's how it looks:
And this is how it looks with 1.0.0 in Light mode:
Please fix this. issue But for now, 0.9.2 still works well enough with Sphinx 8.1.3.
The text was updated successfully, but these errors were encountered: