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.

Request: support escape character in state diagram

See original GitHub issue

Some characters, like . or #, can not be escaped in state diagram, but it will be helpful if we want name the state name of self.newstate or some like this.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:9
  • Comments:5

github_iconTop GitHub Comments

5reactions
dbabokincommented, Feb 17, 2022

I’m super excited that Mermaid diagrams are now supported by Github! And the first issue, I bumped into, is lack of support for :: in the class name (I need a C++ class diagram and it’s very natural to have namespaces for C++ classes). I’m glad that a workaround with escaping names by enclosing them in backticks is available. Though, would be good to document it in the ClassDiagram docs and possibly enable it without backticks.

Here’s how it works now.

Source:

classDiagram
    class `a::A`
    class `b::B`

    `a::A` --|> `b::B`

Rendered:

classDiagram
    class `a::A`
    class `b::B`

    `a::A` --|> `b::B`
3reactions
persidskiycommented, Jun 14, 2020

I’m having the similar problem with classDiagram which doesn’t allow me to use C++ namespaces class names

classDiagram
    class a::A
    class b::B

    a::A --|> b::B

Read more comments on GitHub >

github_iconTop Results From Across the Web

Escape sequences in C - Wikipedia
An escape sequence is a sequence of characters that does not represent itself when used inside a character or string literal, but is...
Read more >
When to escape characters - Splunk Documentation
Characters and escape sequences that must be escaped ; " Quotation marks. ; \, Backslash character. ; \b, Backspace escape sequence. ; \f,...
Read more >
State Machine Diagram - UML 2 Tutorial - Sparx Systems
A choice pseudo-state is shown as a diamond with one transition arriving and two or more transitions leaving. The following diagram shows that...
Read more >
Character Escapes in .NET Regular Expressions
Learn about special characters and escaped characters in . ... The following table lists the character escapes supported by regular ...
Read more >
Escape sequences - cppreference.com
↑ Conditional escape sequences are conditionally-supported. The character c in each conditional escape sequence is a member of basic source ...
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