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

Character entities such as   in sequence diagrams trigger diagram syntax error #1493

Open
billfrost opened this issue Jul 24, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@billfrost
Copy link

Describe the bug
Live editor shows diagram syntax error when the diagram body contains character entities like    
The entities are correctly interpreted inside a web page

 element when loading Mermaid from the CDN.

To Reproduce
Link to Live Editor: https://mermaid.live/edit#pako:eNo1jTEKwzAMRa9iNHRKLuBCpvYEXbXItpIaYjm15SGE3L2GNtv78D7vAJ8Dg4XKn8bi-RFpKZRQaBynyVlDRrO5iavb3cEAiUuiGPrjQDEGQd-cGMF2DDxTWxUB5exq2wIpP0PUXMBqaTwANc2vXfy1f84_CnamtfL5BZdIMv8

Steps to reproduce the behavior:

  1. Paste the following into a new live editor panel:
    sequenceDiagram
    a-->>b: a to  b

Expected behavior
Character entities should not trigger syntax errors when the Mermaid code from the CDN honours them correctly.

@billfrost billfrost added the bug Something isn't working label Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant