question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How can I escape - character in sequenceDiagram?

See original GitHub issue

How can I escape - in foo-bar here:

sequenceDiagram
foo-bar->foo: foo

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

1reaction
zeerdcommented, Jul 29, 2021

use ‘as’ might help.

sequenceDiagram
    participant a as leftOfColon#58;rightOfColon
    participant b as leftOfColon2#58;rightOfColon2
    a->>b: hello
0reactions
masch712commented, Jul 28, 2021

@zeerd the UTF-8 character codes work in participant declarations, but they don’t appear to work in the actual sequence part of the diagram (sorry if my jargon is off here). Example: image See above that the participants look good!

image See above that we can’t connect the participants 😢

the mermaid code:

sequenceDiagram
    participant leftOfColon#58;rightOfColon
    participant leftOfColon2#58;rightOfColon2
    leftOfColon#58;rightOfColon->>leftOfColon2#58;rightOfColon2: hello
Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I escape - character in sequenceDiagram? #679
It seems there are no escape characters in TEXT elements on this graph type. Maybe the text processing function from the flowchart diagram ......
Read more >
Instructions and Examples - SequenceDiagram.org
Click the copy icon below the sequence diagram images to copy the source text and past it in the source editor. View Menu....
Read more >
Mermaid CLI - how do you escape characters? - Stack Overflow
Use quotation marks "" to enclose your text and escape special characters, ... Here are more examples of escaping / quoting special characters....
Read more >
Allow adding a forward slash character in a sequence ...
When adding a / character in the name property of a Message in a sequence diagram on the canvas it shakes and doesn't...
Read more >
Sequence Diagram Tutorial - Complete Guide with Examples
Sequence diagram tutorial to master sequence diagrams; ... draw a sequence diagram to the common mistakes you should avoid when drawing one.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found