Syntax error when using non-alphanumeric in architecture node label #6056
Open
Description
Description
When using anything outside of [a-zA-Z0-9_ ]
a syntax error is thrown.
This doesn't work:
architecture-beta
group agroup(cloud)[Cloud-Name]
This does:
architecture-beta
group agroup(cloud)[Cloud_Name]
Steps to reproduce
- Create mermaid architecture diagram
- Use a label that contains a
-
character - Observe syntax error
Screenshots
Code Sample
See above
Setup
- Mermaid version: 11.4.0
- Browser and Version: Chrome 130.0.6723.117 [arm64], Safari 18.1 (19619.2.8.111.5, 19619)[arm64]
Suggested Solutions
- Expand parser to allow any character in the label, possibly supporting escaped brackets
Additional Context
No response