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
71.99k stars 6.53k forks source link

SquenceDiagram does not support actors with a dash #691

Closed nivekcode closed 5 years ago

nivekcode commented 6 years ago

I try to create a sequencediagram with an actor that includes a dash. It does not work because the dash is also included in the line definition. I just wanted to ask if it is already possible to add actors with dasehs or if we could add this feature.

I tried the following diagram on the mermaid online editor:

sequenceDiagram
foo-test->>+bar:test

Output

Parse error on line 2:
sequenceDiagramfoo-test->>+bar:test
------------------^
Expecting 'NL', 'AS', ',', 'SOLID_OPEN_ARROW', 'DOTTED_OPEN_ARROW', 'SOLID_ARROW', 'DOTTED_ARROW', 'SOLID_CROSS', 'DOTTED_CROSS', 'TXT', got '-'
zeerd commented 6 years ago

maybe you can try:

sequenceDiagram foo#8211;test->>+bar:test

nivekcode commented 6 years ago

@zeerd Thanks for the response. I pasted your diagram definition in the mermaid online editor (https://mermaidjs.github.io/mermaid-live-editor) and still received the error.

zeerd commented 6 years ago

It's strange. I tested it in typora which is using built-in mermaid, and this #8211; working on it.

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.