quarto-dev / quarto-dev/quarto-cli
[Bug] Mermaid Entity Relationship Diagram (ERD) failing to render in HTML output
Nobody has claimed this yet.
- 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
Expected behavior
The example in mermaid.
https://mermaid.ai/open-source/syntax/entityRelationshipDiagram.html
Your environment
- IDE: VS Code
- OS: Mac OS
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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