Skip to content
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

When a URL link highlight targets a part of the Mermaid chart, a syntax error is displayed for some browser. #136

Open
genego-io opened this issue Jan 11, 2024 · 0 comments

Comments

@genego-io
Copy link

  • Sphinx Version: 7.2.6
  • sphinxcontrib-mermaid Version: 0.8.1

This issue seems to happen in the latest version of Edge and Chrome browsers.

For example, there is documentation at https://doc.example.com which runs through Sphinx with sphinxcontrib-mermaid. When we visit a documentation page https://doc.example.com/index.html where there is a Mermaid diagram, no issues display. However, when we use the search function in Sphinx, and navigate to a resulting page, for example: https://doc.example.com/index.html?highlight=foo, and the Mermaid chart also has foo in the Chart itself, the chart breaks.

Giving some better examples:

https://help.konfuzio.com/tutorials/advanced-document-extraction/index.html?highlight=vat+code

image

Which will correctly display the mermaid chart in Firefox. But when viewing in Edge or Chrome, we get the following:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant