Render transitions as Mermaid
Opened this issue ยท 2 comments
redeboer commented
GitHub now supports Mermaid diagrams in Markdown text. See Mermaid syntax specifications.
Some benefits:
- Can be rendered without Graphviz, which needs to be installed system-wide.
- Related: can be rendered in the documentation with
sphinxcontrib-mermaid
. - Supports unicode.
- Can be rendered in GitHub.
An example:
```mermaid
graph LR
A["๐ฝ/๐"] --> N0[ ]
N0 --> N1["๐โ(980)"]
N0 --> 0["๐พ"]
N1 --> 1["๐โฐ"]
N1 --> 2["๐โฐ"]
style A fill:#FFFFFF, stroke:#FFFFFF;
style N0 fill:#FFFFFF, stroke:#FFFFFF;
style N1 fill:#FFFFFF, stroke:#FFFFFF;
style 0 fill:#FFFFFF, stroke:#FFFFFF;
style 1 fill:#FFFFFF, stroke:#FFFFFF;
style 2 fill:#FFFFFF, stroke:#FFFFFF;
```
graph LR
A["๐ฝ/๐"] --> N0[ ]
N0 --> N1["๐โ(980)"]
N0 --> 0["๐พ"]
N1 --> 1["๐โฐ"]
N1 --> 2["๐โฐ"]
style A fill:#FFFFFF, stroke:#FFFFFF;
style N0 fill:#FFFFFF, stroke:#FFFFFF;
style N1 fill:#FFFFFF, stroke:#FFFFFF;
style 0 fill:#FFFFFF, stroke:#FFFFFF;
style 1 fill:#FFFFFF, stroke:#FFFFFF;
style 2 fill:#FFFFFF, stroke:#FFFFFF;
shenvitor commented
Interesting ๐
redeboer commented
After suggestions by @grayson-helmholz @Smaldanerep1, this may look better:
```mermaid
graph LR
N0["๐ฝ/๐"] --> N1["๐โ(980)"]
N0["๐ฝ/๐"] --> 0["๐พ"]
N1 --> 1["๐โฐ"]
N1 --> 2["๐โฐ"]
style N0 fill:#FFFFFF, stroke:#FFFFFF;
style N1 fill:#FFFFFF, stroke:#FFFFFF;
style 0 fill:#FFFFFF, stroke:#FFFFFF;
style 1 fill:#FFFFFF, stroke:#FFFFFF;
style 2 fill:#FFFFFF, stroke:#FFFFFF;
```
graph LR
N0["๐ฝ/๐"] --> N1["๐โ(980)"]
N0["๐ฝ/๐"] --> 0["๐พ"]
N1 --> 1["๐โฐ"]
N1 --> 2["๐โฐ"]
style N0 fill:#FFFFFF, stroke:#FFFFFF;
style N1 fill:#FFFFFF, stroke:#FFFFFF;
style 0 fill:#FFFFFF, stroke:#FFFFFF;
style 1 fill:#FFFFFF, stroke:#FFFFFF;
style 2 fill:#FFFFFF, stroke:#FFFFFF;