mjbvz / vscode-markdown-mermaid

Adds Mermaid diagram and flowchart support to VS Code's builtin markdown preview
https://marketplace.visualstudio.com/items?itemName=bierner.markdown-mermaid
MIT License
630 stars 112 forks source link

Cannot change entity color in erDiagram #222

Closed nos-nakagawa closed 3 months ago

nos-nakagawa commented 8 months ago

I'm writing erDiagram with mermaid in markdown text. I want to change color of a certain entity in preview, but I can't. How can I change it?

(example erDiagram code. Ofcource I can preview it.)

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

I tryed adding below codes under example code to change CUSTOMER color, but all of them returns error.

1. 
class CUSTOMER {
  fill:#FFDDDD;
}

2.
CUSTOMER {
  color: "#FFDDDD" 
}

3.
classDef customerStyle fill:#FFDDDD;
class CUSTOMER customerStyle;

4.
classDef customerStyle fill:#FFDDDD;
CUSTOMER:::customerStyle
mjbvz commented 7 months ago

I tryed adding below codes

Is this something mermaid supports? Can you please share the full text of a diagram that mermaid renders correctly but this extension does not

mjbvz commented 3 months ago

Closing as not reproducible