mermaid-js / mermaid

Generation of diagrams like flowcharts or sequence diagrams from text in a similar manner as markdown
https://mermaid.js.org
MIT License
68.79k stars 6.08k forks source link

Hash "#" symbol as prefix is not working for sequenceDiagram #5419

Open dav1tj opened 3 months ago

dav1tj commented 3 months ago

Description

When we are using "#" has symbol as prefix in sequence diagram, text becomes empty.

Steps to reproduce

Try to use this code: sequenceDiagram actor Alice as #1 actor Bob as Bob actor actor_sgautk7mz as New Actor

Note over Bob: #55 Bob -->> Bob: new msg Alice ->> Bob: #66 Bob ->> Alice: Hi Alice

Screenshots

image

Code Sample

No response

Setup

Suggested Solutions

No response

Additional Context

No response

sidharthv96 commented 3 months ago

Hi @dav1tj, I think I know you from somewhere else ;)

These two PRs are related, major concern is breaking existing diagrams, so if that won't be an issue, we can have this.

Having # at the start of an id seems a bit odd(as it's usually not used, or used as a modifier in coding), what's the use case?