码迷,mamicode.com
首页 > 其他好文 > 详细

markdown流程图

时间:2015-12-20 22:20:52      阅读:447      评论:0      收藏:0      [点我收藏+]

标签:

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流程图

标签:

原文地址:http://www.cnblogs.com/XBlack/p/5061836.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!