Skip to content
This repository has been archived by the owner on Feb 6, 2020. It is now read-only.

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

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

sat1993
Copy link

@sat1993 sat1993 commented Jan 24, 2017

流程图支持添加

添加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 sat1993 changed the title 为markdown添加flowchart.js流程图支持 为markdown添加流程图、时序图支持 Jan 24, 2017
@iamcco iamcco mentioned this pull request Nov 5, 2017
@Devilsparta
Copy link

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

@iamcco
Copy link
Owner

iamcco commented Jul 4, 2019

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

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants