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

Quoted entity names #162

Open
mpes opened this issue Jan 3, 2023 · 3 comments
Open

Quoted entity names #162

mpes opened this issue Jan 3, 2023 · 3 comments

Comments

@mpes
Copy link

mpes commented Jan 3, 2023

Could it be possible to enable usage of quotes as enetity names in erDiagram?
Mermaid forces me to use it if there is a special character or a space while here I must do many renames.
Thank you

@hikerpig
Copy link
Owner

hikerpig commented Jan 4, 2023

If this is possible in Mermaid , then it can be possible in pintora.
Can you give an example here ?

@csokolo
Copy link

csokolo commented Mar 12, 2025

+1

Example:

Currently this does not work:

sequenceDiagram

title: Test

participant [<actor> "The User"]
participant [<boundary> "The App"]

"The User" -->> "The App": Hello world!
"The App" -->> "The User": Hello!

Instead, the entity names must only use a-z,A-Z,0-9,_

Ideally, anything in quotes would give the entity it's name until the next unescaped quote was encountered.

Valid Names:

"test 1\"" -> test1"
"test 1" -> test 1

Invalid Names:

"test 1""
"test 1

Tested via CLI with the following command:

pintora render -i ./test1.uml -t dark -o ./test1.jpg

@hikerpig
Copy link
Owner

@csokolo Things may be a little different between erDiagram and sequenceDiagram.
Currently I don't find mermaid capable of parsing things like your example either.

In pintora sequenceDiagram, you can write quoted names but not everywhere, in your case you might need to use the alias feature.
A demo below:

sequenceDiagram

title: Test

participant [<actor> U] as "The User" 
participant [<boundary> App] as "The App"

U -->> App: Hello world!
App -->> U: Hello!

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

3 participants