Skip to content

Allow attribute names to be escaped on ER diagram #5123

Open
@deniswsrosa

Description

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

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions