shd101wyy / vscode-markdown-preview-enhanced

One of the "BEST" markdown preview extensions for Visual Studio Code
https://shd101wyy.github.io/markdown-preview-enhanced
Other
1.44k stars 172 forks source link

`flowchart` not work #1609

Open quchunguang opened 6 years ago

quchunguang commented 6 years ago

flowchart not work. Using following code block,

st=>start: Start|past:>http://www.google.com[blank]
e=>end: End:>http://www.google.com
op1=>operation: My Operation|past
op2=>operation: Stuff|current
sub1=>subroutine: My Subroutine|invalid
cond=>condition: Yes
or No?|approved:>http://www.google.com
c2=>condition: Good idea|rejected
io=>inputoutput: catch something...|request
para=>parallel: parallel tasks

st->op1(right)->cond
cond(yes, right)->c2
cond(no)->para
c2(true)->io->e
c2(false)->e

para(path1, bottom)->sub1(left)->op1
para(path2, right)->op2->e

st@>op1({"stroke":"Red"})@>cond({"stroke":"Red","stroke-width":6,"arrow-end":"classic-wide-long"})@>c2({"stroke":"Red"})@>op2({"stroke":"Red"})@>e({"stroke":"Red"})

it generated folllowing error message,

TypeError: t.shiftX is not a function

Environment Windows 10 64 bit vscode 1.22.2

watahani commented 6 years ago

It seems to come from flowchart.js version. flowchart.js in Markdown Preview Enhanced is version 1.7.0, but latest version is 1.11.0.

watahani commented 6 years ago

Duplicate of shd101wyy/vscode-markdown-preview-enhanced#1595