Open AndhikaWB opened 3 months ago
Are you sure it's a Merdaid 10.2 feature?
Somebody is using Mermaid erDiagram on #6363, and from what I conclude he seemed to successfully render it locally, but just not when publishing on confluence
However, it's indeed that Mermaid version supplied by Quarto is much older compared to current Mermaid version (1.0.9.1). Is there a way to update built-in Mermaid manually?
First, you are using invalid syntax, second you are talking about confluence but showed an example that output to GFM. Confluence is not plain HTML and as showed by the issue you linked, it's not working well but this is unrelated to your report wrongly stating or at least not accurately stating the issue
Entity Relationship Diagram works but not the syntax you used.
Mermaid.js as any JavaScript libraries is designed for HTML.
Input | Output |
---|---|
````qmd --- title: "Quarto Playground" format: html --- ``` {mermaid} erDiagram CUSTOMER ||--o{ ORDER : places ORDER ||--|{ LINE-ITEM : contains CUSTOMER }|..|{ DELIVERY-ADDRESS : uses ``` ```` |
The following syntax is not supported by Mermaid.js 10.2 and there is nothing to be done about that.
```{mermaid}
erDiagram
c[customer] {
Int64 CustomerID PK
Str FirstName
Str LastName
Str CustomerEmail
Str CustomerPhone
Str CustomerAddress
Str CustomerCity
Str CustomerState
Int64 CustomerZip
}
My bad, I just searched more about it and it seems that the entity name alias (1.0.5.0+) is indeed the one causing error
However, the syntax highlighting still doesn't work correctly even after removing the name alias. But I guess you can close this issue if you think this isn't important enough
Bug description
Quarto v1.5.56 doesn't recognize Mermaid erDiagram, even though the Mermaid code works well on Mermaid live editor
Steps to reproduce
Expected behavior
The ER diagram shows up properly (just like in Mermaid live editor)
Actual behavior
A syntax error image appear as seen below
Also, the Mermaid syntax highlighting doesn't work if I declare
erDiagram
at the beginning of the code chunk, but seems to work well on other types of diagramYour environment
Quarto check output