今回は、お試し実装しているβ機能についてです。
esa では、Plant UMLでのUML記法の他にもmermaidにもひっそりと対応しております。現在は、Version: 8.0.0
に対応しております
mermaid
は当初ガントチャートが描けることがユニークな点でしたが、最近ではPlantUMLでもガントチャートが描けるようなので、見た目や記法の好みで好きな方を選択するのがヨサソウです。
esa で記事を書く際の表現の幅が広がりますので、ぜひお試し下さい
※ mermaid記法のサポート、サポートされる mermaid のバージョンは今後変更される可能性があります。
> ガントチャートの例ガントチャートの例
```mermaid
gantt
title A Gantt Diagram
dateFormat YYYY-MM-DD
section Section
A task :a1, 2014-01-01, 30d
Another task :after a1 , 20d
section Another
Task in sec :2014-01-12 , 12d
another task : 24d
```
gantt
title A Gantt Diagram
dateFormat YYYY-MM-DD
section Section
A task :a1, 2014-01-01, 30d
Another task :after a1 , 20d
section Another
Task in sec :2014-01-12 , 12d
another task : 24d
```mermaid
gantt
dateFormat YYYY-MM-DD
title Adding GANTT diagram functionality to mermaid
section A section
Completed task :done, des1, 2014-01-06,2014-01-08
Active task :active, des2, 2014-01-09, 3d
Future task : des3, after des2, 5d
Future task2 : des4, after des3, 5d
section Critical tasks
Completed task in the critical line :crit, done, 2014-01-06,24h
Implement parser and jison :crit, done, after des1, 2d
Create tests for parser :crit, active, 3d
Future task in critical line :crit, 5d
Create tests for renderer :2d
Add to mermaid :1d
section Documentation
Describe gantt syntax :active, a1, after des1, 3d
Add gantt diagram to demo page :after a1 , 20h
Add another diagram to demo page :doc1, after a1 , 48h
section Last section
Describe gantt syntax :after doc1, 3d
Add gantt diagram to demo page :20h
Add another diagram to demo page :48h
```
gantt
dateFormat YYYY-MM-DD
title Adding GANTT diagram functionality to mermaid
section A section
Completed task :done, des1, 2014-01-06,2014-01-08
Active task :active, des2, 2014-01-09, 3d
Future task : des3, after des2, 5d
Future task2 : des4, after des3, 5d
section Critical tasks
Completed task in the critical line :crit, done, 2014-01-06,24h
Implement parser and jison :crit, done, after des1, 2d
Create tests for parser :crit, active, 3d
Future task in critical line :crit, 5d
Create tests for renderer :2d
Add to mermaid :1d
section Documentation
Describe gantt syntax :active, a1, after des1, 3d
Add gantt diagram to demo page :after a1 , 20h
Add another diagram to demo page :doc1, after a1 , 48h
section Last section
Describe gantt syntax :after doc1, 3d
Add gantt diagram to demo page :20h
Add another diagram to demo page :48h
ガントチャートの詳しい記法はこちらをご確認ください。
> フローチャートの例フローチャートの例
```mermaid
graph TD;
A-->B;
A-->C;
B-->D;
C-->D;
```
graph TD;
A-->B;
A-->C;
B-->D;
C-->D;
フローチャートの詳しい記法はこちらをご確認ください。
> シーケンス図の例シーケンス図の例
```mermaid
sequenceDiagram
Alice->>John: Hello John, how are you?
John-->>Alice: Great!
```
sequenceDiagram
Alice->>John: Hello John, how are you?
John-->>Alice: Great!
シーケンス図の詳しい記法はこちらをご確認ください。
> mermaid 記法やその他の記法についてmermaid 記法やその他の記法について
- https://docs.esa.io/posts/49#Mermaid こちらもご覧ください
> 所感所感
先日、移転祝いに鳩時計を頂きました ありがとうございます
graph TD;
時報-->|長針が0分を指す| 時刻の数だけ鳴く;
時報-->|長針が30分を指す| 1度だけ鳴く;
Enjoy "(\( ⁰⊖⁰)/)"
https://esa.io