feat(er): use square brackets to add aliases

This commit is contained in:
Tom PERRILLAT-COLLOMB
2023-08-22 11:05:09 +02:00
parent cc8b4572d5
commit a7ae1b6890
5 changed files with 20 additions and 19 deletions

View File

@@ -200,15 +200,15 @@ The `type` values must begin with an alphabetic character and may contain digits
### Entity Name Aliases (v\<MERMAID_RELEASE_VERSION>+)
An alias can be added to an entity using `as` keyword. If provided, the alias will be showed in the diagram instead of the entity name.
An alias can be added to an entity using square brackets. If provided, the alias will be showed in the diagram instead of the entity name.
```mermaid-example
erDiagram
p as Person {
p[Person] {
string firstName
string lastName
}
a as "Customer Account" {
a["Customer Account"] {
string email
}
p ||--o| a : has
@@ -216,11 +216,11 @@ erDiagram
```mermaid
erDiagram
p as Person {
p[Person] {
string firstName
string lastName
}
a as "Customer Account" {
a["Customer Account"] {
string email
}
p ||--o| a : has