markdown-viewer
markdown-viewer copied to clipboard
Mermaid state diagram rendered incorrectly
According to mermaid webpage it should be possible to define direction for a state diagram.
However, it looks like the direction statement is not supported in Markdown Viewer 4.0 and thus the diagram is rendered incorrectly:
Browser: Mozilla Firefox 95.0
Can you provide a sample mermaid code snippet? Probably I need to update the library version.
It's the same one mentioned in mermaid webpage:
```mermaid
stateDiagram
direction LR
[*] --> A
A --> B
B --> C
state B {
direction LR
a --> b
}
B --> D
\```
Similar issue, solved after changing mermaid.min.js to newest.
Ok, then that means I need to update it too :+1:
Hello, same issue here. Thanks.
direction LR
didn't work in markdown-viewer 4.0.
Mermaid got updated in Markdown Viewer v5, you can download it from the Chrome Web Store or the releases section here.