bpruitt-goddard / vscode-mermaid-syntax-highlight

Markdown syntax support for the Mermaid charting language
MIT License
98 stars 37 forks source link

[Bug] Doesn't work on mermaid graphs in indented (nested) Markdown lists. #125

Open RokeJulianLockhart opened 8 months ago

RokeJulianLockhart commented 8 months ago

For instance, the undermentioned code:

1.  ## **Heading**

    ```mermaid
    graph TD;
        A-->B;
        A-->C;
        B-->D;
        C-->D;
    ```

renders in GitHub and https://marketplace.visualstudio.com/_apis/public/gallery/publishers/bierner/vsextensions/markdown-mermaid/1.22.0/vspackage:

1. ## **Heading** ```mermaid graph TD; A-->B; A-->C; B-->D; C-->D; ```

yet your https://marketplace.visualstudio.com/_apis/public/gallery/publishers/bpruitt-goddard/vsextensions/mermaid-markdown-syntax-highlighting/1.6.0/vspackage does not render syntax highlighting on it:

image