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
640 stars 115 forks source link

Newline at Beginning of Fenced Code Block breaks Class Diagram #147

Closed BalduinLandolt closed 1 year ago

BalduinLandolt commented 1 year ago

Thank you very much for this useful extension!

I noticed a small issue:
(sorry for using screenshots, but trying to adequately represent fenced code blocks in markdown is a pain...)

This works perfectly:

image

But when I add a newline in front of the diagram, I get undefined:

image

As far as I noticed, this is only the case for `classDiagram, the other diagram types I'm using seem to not care about newlines.