2019-03-26

markdown 기반 flow chart, mermaid

mermaid

markdown 기반 flow chart, sequence / class diagram, gantt chart, git graph 등을 표현할 수 있는 API

Flowchart #


Link text
One
Two
Hard edge
Round edge
Decision
Result one
Result two

Sequence Diagram#

AliceJohnHello John, how are you?Great!AliceJohn

Ganttchart#

2014-01-072014-01-092014-01-112014-01-132014-01-152014-01-172014-01-192014-01-21Completed task Active task Future task Future task2 Completed task in the critical line Implement parser and jison Create tests for parser Future task in critical line Create tests for renderer Add to mermaid A sectionCritical tasksAdding GANTT diagram functionality to mermaid

Blog Setting

mermaid.initialize({ startOnLoad:true, theme: 'forest' });
window.mermaid.init(undefined, document.querySelectorAll('.language-mermaid'));
현재 이 블로그에서 위와 같은 설정을 통해 markdown 방식으로 아래와 같은 형태로 사용 가능
```mermaid
sequenceDiagram
Alice->>John: Hello John, how are you?
```

0 개의 댓글:

댓글 쓰기