为知笔记 Markdown 新手指南 http://www.wiz.cn/feature-markdown.html
时序图,流程图
详细流程图语法 http://adrai.github.io/flowchart.js/
详细时序图语法例子 http://bramp.github.io/js-sequence-diagrams/
新建.md
笔记,选择Editor.md
编辑器编辑。
打开md_editor_core.js
文件,修改功能配置项。保存,重新启动为知笔记。
Editor.md 是一款开源的、可嵌入的 Markdown 在线编辑器(组件),基于 CodeMirror、jQuery 和 Marked 构建。
#时序图
```seq
ANdrew->china:say holle
china-->ANdrew:say holle2
note left of china:hello
ANdrew->china:say holle3
```
```sequence
Alice->Bob: Hello Bob, how are you?
Note right of Bob: Bob thinks
Bob-->Alice: I am good thanks!
```
# Example of a comment.
```seq
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 A,B: Note over both A and B
```
```seq
Andrew->China: Says Hello
Note right of China: China thinks\nabout it
China-->Andrew: How are you?
Andrew->>China: I am good thanks!
```
```seq
Title: Here is a title
A->B: Normal line
B-->C: Dashed line
C->>D: Open arrow
D-->>A: Dashed open arrow
```
#流程图
```flow
st=>start: 开始
e=>end: 结束
op1=>operation: My Operation
sub1=>subroutine: My Subroutine
cond=>condition: Yes or No?
io=>inputoutput: catch something...
st->op1->cond
cond(yes)->io->e
cond(no)->sub1(right)->op1
```
新建笔记,是默认笔记格式,保存然后编辑, 记住选择Editor.md
编辑器编辑
可以测试试试看 ,
原文:http://www.cnblogs.com/chenyq/p/5193012.html