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

Allow attribute names to be escaped on ER diagram #5123

Open
deniswsrosa opened this issue Dec 7, 2023 · 1 comment · May be fixed by #5138
Open

Allow attribute names to be escaped on ER diagram #5123

deniswsrosa opened this issue Dec 7, 2023 · 1 comment · May be fixed by #5138
Labels
Graph: Entity Relationship Status: Approved Is ready to be worked on Type: Bug / Error Something isn't working or is incorrect

Comments

@deniswsrosa
Copy link

Description

I have a few use cases for Document databases where I need the attribute name to contain special characters in the ER diagram. It would be really nice if we allow users to specify whatever name they want using backticks:

erDiagram
hotel {
String address
String geo.accuracy
}

Steps to reproduce

try to generate an ER diagram where the attributes have .,?, "" etc

Screenshots

No response

Code Sample

erDiagram
hotel { 
String address
String alias
String checkin
String geo.accuracy

}

Setup

  • Mermaid version:
  • Browser and Version: [Chrome, Edge, Firefox]

Suggested Solutions

No response

Additional Context

No response

@deniswsrosa deniswsrosa added Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect labels Dec 7, 2023
@ejscribner ejscribner linked a pull request Dec 12, 2023 that will close this issue
4 tasks
@nirname nirname added Status: Approved Is ready to be worked on Graph: Entity Relationship and removed Status: Triage Needs to be verified, categorized, etc labels Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Graph: Entity Relationship Status: Approved Is ready to be worked on Type: Bug / Error Something isn't working or is incorrect
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants
@deniswsrosa @nirname and others