Feature: Add support for directions in erDiagram
Author: VahorCreated Jun 22, 2026Updated Aug 29, 2026
As seen in https://mermaid.ai/open-source/syntax/entityRelationshipDiagram.html
we should be able to use direction [direction] in erDiagram.
But if i take their doc example:
erDiagram
direction TB
CUSTOMER ||--o{ ORDER : places
CUSTOMER {
string name
string custNumber
string sector
}
ORDER ||--|{ LINE-ITEM : contains
ORDER {
int orderNumber
string deliveryAddress
}
LINE-ITEM {
string productCode
int quantity
float pricePerUnit
}the expect would be something like
but we are getting
Is there a way to use directions ?
Source: lukilabs/beautiful-mermaid