DiagrammeR
DiagrammeR copied to clipboard
Mermaid sequence diagrams broken
Example 1
Code:
mermaid("
sequenceDiagram;
B ->> A: C
A ->> B: D
")
DiagrammeR:
mermaid.js:
Example 2
Code:
mermaid("
sequenceDiagram;
participant A
A ->> B: C
")
DiagrammeR:
mermaid.js:
These issues seem fixed after the last update of the mermaid library. Could you try again after installing the latest version from github using:
devtools::install_github("rich-iannone/DiagrammeR")
Hi there @ViRb3 and @wligtenberg . I believe this issue is solved with possible a syntax/whitespace fix/work-around:
# Solution to first situation (notice the spacing of the '->>'
mermaid("
sequenceDiagram;
B->>A: C
A->>B: D
")
# Solution to the second situation (same '->>' solution)
mermaid("
sequenceDiagram;
participant A
A->>B: C
")
Thanks
Closing this in favor of https://github.com/rich-iannone/DiagrammeR/issues/475.