markdown-preview.vim icon indicating copy to clipboard operation
markdown-preview.vim copied to clipboard

为markdown添加流程图、时序图支持

Open sat1993 opened this issue 8 years ago • 2 comments

流程图支持添加

添加flowchart.js、jquery.js、raphael.js支持。 jquery.js可能造成了代码风格不统一。 测试流程图代码,需使用```flow代码块

st=>start: Start|past:>http://www.google.com[blank]
e=>end: End|future:>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...|future

st->op1(right)->cond
cond(yes, right)->c2
cond(no)->sub1(left)->op1
c2(yes)->io->e
c2(no)->op2->e

时序图支持,需要使用sequence代码块,可通过sequence:hand 或sequence:simple设置样式。理论上只要带有sequence就能被识别为sequence:simple 测试代码:

Andrew->China: Says Hello
Note right of China: China thinks\nabout it
China-->Andrew: How are you?
Andrew->>China: I am good thanks!

sat1993 avatar Jan 24 '17 02:01 sat1993

@iamcco 能合并下这个吗?迫切需要中。。。

Devilsparta avatar Jul 04 '19 06:07 Devilsparta

@iamcco 能合并下这个吗?迫切需要中。。。

https://github.com/iamcco/markdown-preview.nvim

iamcco avatar Jul 04 '19 06:07 iamcco