用Markdown编辑器的语法写UML的例子汇总。

用Markdown编辑器的语法写UML的例子汇总。
可以渲染序列图:

```sequence
张三->李四: 嘿,小四儿, 写博客了没?
Note right of 李四: 李四愣了一下,说:
李四-->张三: 忙得吐血,哪有时间写。
```
Created with Raphaël 2.1.0 张三 张三 李四 李四 嘿,小四儿, 写博客了没? 李四愣了一下,说: 忙得吐血,哪有时间写。
```sequence
Andrew->China: Says Hello 
Note right of China: China thinks\nabout it
China-->Andrew: How are you? 
Andrew->>China: I am good thanks!
```
Created with Raphaël 2.1.0 Andrew Andrew China China Says Hello China thinks about it How are you? I am good thanks!
```sequence
Title: Here is a title
A->B: Normal line 
B-->C: Dashed line 
C->>D: Open arrow 
D-->>A: Dashed open arrow

Note left of A: Note to the\n left of A 
Note right of A: Note to the\n right of A 
Note over A: Note over A 
Note over C,D: Note over both C and D
```
Created with Raphaël 2.1.0 Here is a title A A B B C C D D Normal line Dashed line Open arrow Dashed open arrow Note to the left of A Note to the right of A Note over A Note over both C and D

或者流程图:

```flow
st=>start: 开始
e=>end: 结束
op=>operation: 我的操作
cond=>condition: 确认?

st->op->cond
cond(yes)->e
cond(no)->op
```
Created with Raphaël 2.1.0 开始 我的操作 确认? 结束 yes no
```flow
st=>start: Start:>http://www.google.com[blank]
e=>end:>http://www.google.com
op1=>operation: My Operation 
sub1=>subroutine: My Subroutine 
cond=>condition: Yes or No?:>http://www.google.com 
io=>inputoutput: catch something... 

st->op1->cond
cond(yes)->io->e
cond(no)->sub1(right)->op1
``` 
Created with Raphaël 2.1.0 http://www.google.com Start http://www.google.com My Operation http://www.google.com Yes or No? http://www.google.com catch something... http://www.google.com End http://www.google.com My Subroutine yes no
```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
```
Created with Raphaël 2.1.0 http://www.google.com Start http://www.google.com My Operation http://www.google.com Yes or No? http://www.google.com Good idea catch something... http://www.google.com End http://www.google.com Stuff My Subroutine yes no yes no
```flow
st=>start: Start:>http://www.google.com[blank]
e=>end: End:>http://www.google.com
op1=>operation: My Operation
op2=>operation: Stuff
sub1=>subroutine: My Subroutine
cond=>condition: Yes or No?:>http://www.google.com
c2=>condition: Good idea
io=>inputoutput: catch something...

st->op1(right)->cond
cond(yes, right)->c2
cond(no)->sub1(left)->op1
c2(yes)->io->e
c2(no)->op2->e
```
Created with Raphaël 2.1.0 http://www.google.com Start http://www.google.com My Operation http://www.google.com Yes or No? http://www.google.com Good idea catch something... http://www.google.com End http://www.google.com Stuff My Subroutine yes no yes no
  • 2
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值