quarto-dev / quarto-dev/quarto-cli

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

Open
#14,455 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug diagrams-mermaid
Dominant language
JavaScript
Stars
6k
Forks
458
Avg merge
1d 9h
Merged PRs (30d)
41

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the supplied Mermaid ERD block in Quarto and inspecting the generated HTML output. Compare the result with the Mermaid entity relationship diagram shown in the linked documentation; done means the example renders with the expected entities, relationships, and layout.

Written by the indexing model from the issue text.

Assessment

Tech stack
html, javascript
Domain
frontend, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.