Skip to content

[Bug] Mermaid Entity Relationship Diagram (ERD) failing to render in HTML output #14455

@zi-ang-liu

Description

@zi-ang-liu

Bug description

Description: When using a Mermaid block to create an Entity Relationship Diagram, the rendered HTML does not display the diagram correctly.

Steps to reproduce

The following is the example in mermaid website.

---
title: Order example
---
erDiagram
    CUSTOMER ||--o{ ORDER : places
    ORDER ||--|{ LINE-ITEM : contains
    CUSTOMER }|..|{ DELIVERY-ADDRESS : uses

Actual behavior

Image

Expected behavior

The example in mermaid.
https://mermaid.ai/open-source/syntax/entityRelationshipDiagram.html

Image

Your environment

  • IDE: VS Code
  • OS: Mac OS

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdiagrams-mermaidMermaid diagrams

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions