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

Special characters in label should be escaped #34

Open
selfboot opened this issue Jun 6, 2023 · 2 comments
Open

Special characters in label should be escaped #34

selfboot opened this issue Jun 6, 2023 · 2 comments

Comments

@selfboot
Copy link

selfboot commented Jun 6, 2023

In Mermaid syntax, node labels cannot contain parentheses and comma. This is because the Mermaid syntax parser treats parentheses as special characters.

Error:

graph TB
  E[A(demo)] -->|AA| F[Succ]
  G[B,test] -->|BB | N[B]

Succ:

graph TB
  E["A(demo)"] -->|AA| F[Succ]
  G["B,test"] -->|BB | N[B]
@bra1nDump
Copy link
Owner

We have this in the manifest prompt, sometimes it still makes mistakes. Don't think we can do anything with it at the moment

@selfboot
Copy link
Author

selfboot commented Jun 7, 2023

We have this in the manifest prompt, sometimes it still makes mistakes. Don't think we can do anything with it at the moment

Do you mean this line in the code?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants