Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Link text in class diagram doesn't support character escaping #6021

Open
AndreiShenets opened this issue Nov 4, 2024 · 0 comments
Open

Link text in class diagram doesn't support character escaping #6021

AndreiShenets opened this issue Nov 4, 2024 · 0 comments
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect

Comments

@AndreiShenets
Copy link

AndreiShenets commented Nov 4, 2024

Description

I have following class diagram

classDiagram
direction BT
class Entity1 {
   text Id
}
class Entity2 {
   text Id
   text Entity1Id
}

Entity2  -->  Entity1 : "Entity1Id:Id"

Which fails to render with the error like below:

image

Both double quotes and escaping ':' with '\' doesn't help. I was not able to find other ways of escaping so I think it is a bug.

Example:

classDiagram
direction BT
class Entity1 {
   text Id
}
class Entity2 {
   text Id
   text Entity1Id
}

Entity2  -->  Entity1 : "Entity1Id:Id"
Loading

Steps to reproduce

Post the code from the example into the live editor

Screenshots

image

Code Sample

classDiagram
direction BT
class Entity1 {
   text Id
}
class Entity2 {
   text Id
   text Entity1Id
}

Entity2  -->  Entity1 : "Entity1Id:Id"

Setup

  • Mermaid version: latest in live editor
  • Browser and Version: Chrome 130.0.6723.92, Edge 130.0.2849.68

Suggested Solutions

No response

Additional Context

No response

@AndreiShenets AndreiShenets added Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect labels Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect
Projects
None yet
Development

No branches or pull requests

1 participant