markdown流程图

markdown流程图

markdown流程图语法:https://github.com/adrai/flowchart.js

定义元素阶段的语法是

tag=>type: content:>url

tag就是一个标签,在第二段连接元素时用

type是标签的类型,从上段内容看有6中类型:

  • start
  • end
  • operation
  • subroutine
  • condition
  • inputoutput

    注意:type后的冒号与文本之间一定要有个空格
1.st=>start: Start|past:>http://www.google.com[blank]
2.e=>end: End:>http://www.google.com
3.op1=>operation: My Operation|past
4.op2=>operation: Stuff|current
5.sub1=>subroutine: My Subroutine|invalid
6.cond=>condition: Yes
7.or No?|approved:>http://www.baidu.com
8.c2=>condition: Good idea|rejected
9.io=>inputoutput: catch something...|request
10.
11.st->op1(right)->cond
12.cond(yes, right)->c2
13.cond(no)->sub1(left)->op1
14.c2(yes)->io->e
15.c2(no)->op2->e
markdown流程图-LMLPHP
04-30 09:57