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 for mermaid v8.7.0 need newer version #84

Closed jkrigelman closed 3 years ago

jkrigelman commented 3 years ago

Not sure at what point this happened but I went to load a graph which passed in the Live Editor but fails in the preview window. My guess is that something was fixed in the latest version (8.8.2), or the old version (8.7.0) introduced a bug. Hopefully it is easy enough to just pull in the latest version of Mermaid.

graph TD
    A --> C
    B ---> C
QingShiLuoGu commented 3 years ago
graph TD
    A[start];
    B[获取 Editor对象];
    C[通过 Editor 获取 Sink(写入流)];

    A -->   B
    B -->   C   

it just show "Syntax error in graph" too.

mjbvz commented 3 years ago

This extension is now using 8.8.2 and the original example works fine for me

@QingShiLuoGu Your example is an error on the live editor as well