bpruitt-goddard / vscode-mermaid-syntax-highlight

Markdown syntax support for the Mermaid charting language
MIT License
92 stars 35 forks source link

No highlighting graph with only subgraphs #110

Closed gmwxio closed 11 months ago

gmwxio commented 1 year ago

The follow does not highlight.

```mermaid
graph
    subgraph -
        a
    end
```

Potentially it isn't 100% valid mermaid and should read graph TB, but it renders.

bpruitt-goddard commented 11 months ago

I don't believe this is technically valid syntax. The docs do not define a default/unspecified orientation. I can verify that if any direction is specified it will properly highlight:

image