Mermaid Plugin ER Diagram Issue

Bug report

Hello, I’m not able to use the ER Diagram from mermaid. I do not see any error on the Developer tools, but this is what it displays:

Failed to render Mermaid
Parse error on line 2:
...CustomerID Name Age }    entity Order 
-----------------------^
Expecting 'ATTRIBUTE_WORD', got 'BLOCK_STOP'

Environment

  • Platform: NixOS
  • Platform version: 23.05
  • App Version: 5.5.3

How to reproduce

Follow any example about ERD from the official mermaid website

erDiagram
    entity Customer { CustomerID Name Age }

    entity Order {
        OrderID
        OrderDate
        CustomerID
    }

    entity Product {
        ProductID
        Name
        Price
    }

    Customer ||--o{ Order
    Order ||--|{ Product

Hi Daniel,

Looks like you have a syntax error in your ER diagram as the error says.
You can reproduce it on the Mermaid live editor:

I don’t provide user support on how to use Mermaid here.
Please check out the documentation:

I don’t see the same example on that page. Where did you get it?

You are totally right! I had a syntax error, sorry for opening an meaningless ticket, and huge thanks for your work.

Have a a happy day :slight_smile: