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
648 stars 119 forks source link

Syntax error in graph when codeblock is wrapped in html <details> tag #102

Closed disambiguationuk closed 1 year ago

disambiguationuk commented 3 years ago

I'm using a Github Action which leaves the codeblock wrapped in an html tag like this:

- <details>
-   <summary>Mermaid markup</summary>
- 
- ```mermaid
-     erDiagram
- 
- ```
- </details>

On preview with this setup it both renders the diagram and an overlay saying "Syntax error in graph mermaid version 8.9.0

image

mjbvz commented 1 year ago

Seems to work fine for me now:

Screenshot 2022-12-05 at 6 46 19 PM

Let me know if there's a case that still doesn't work