You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Using vscode plugin to show preview of mermaid code. It kept giving a "syntax error in graph mermaid version 9.4.0".
To Reproduce
Steps to reproduce the behavior:
use mermaid code below and generate preview. Error should occur. Remove the 3 rows with the ~~~ and generate preview, error doesn't happen. It's just not working with the tildes.
flowchart TB
%%B --> sefact
%%B --> F
subgraph Color_Key
direction TB %% <-- here
mtbl[middle table]:::class1
~~~stbl[source table]
~~~strm[stream]
end
**Expected behavior**
a preview of the mermaid diagram
**Desktop (please complete the following information):**
- OS: Ventura 13.4.1(c)
- VSCode version 1.80.2 (Universal)
- Extension version 0.18.1
The text was updated successfully, but these errors were encountered:
I published v0.19.1 with the latest mermaid.js. Could you try it?
I was also struggling with the tilde issue
Tilde issue remains
Updating the vscode-mermaid-editor plugin does not help
Updating the mermaid library manually does not help neither
I updated the mermaid library manually using your command successfully to 10.9.1 in your version v0.19.1
when installing mermaid.js 10.3.x was used as far as I remember.
Workaround -> Remove tilde based code
Removing the one solely ~~~ Link that was used made the graph code work again in your Plugins Preview.
It seems there is a Bug in your Code or VSCode when passing over the source from the open file not dealing properly with tildes.
Other Apps using mermaid.js working!
The same code works for me from mermaid.js v10.30 to v10.9.1 in other applications. (I use e.g. the fenced-code-plus plugin in the https://logseq.org desktop app to render mermaid code using mermaid.js v10.7.0
Debugging is hard
No debugging messages are actually showing up in the Output sections of VSCode or using the command: Mermaid Export: Show Log.
Can this be improved?
Is there another location to look this up?
Platform is VSCode 1.91.1 on macOS Ventura 13.6.7 Apple Silicon
Describe the bug
Using vscode plugin to show preview of mermaid code. It kept giving a "syntax error in graph mermaid version 9.4.0".
To Reproduce
Steps to reproduce the behavior:
use mermaid code below and generate preview. Error should occur. Remove the 3 rows with the ~~~ and generate preview, error doesn't happen. It's just not working with the tildes.
flowchart TB
%%B --> sefact
%%B --> F
subgraph Color_Key
direction TB %% <-- here
mtbl[middle table]:::class1
The text was updated successfully, but these errors were encountered: