You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can then include the markdown in your HTML pages with something like:
<!DOCTYPE html><html><head><title>Mermaid Diagram Example</title></head><body><h1>Flowchart</h1><divclass="mermaid">
graph LR
A[Start] --> B{Decision}
B -- Yes --> C[Process 1]
B -- No --> D[Process 2]
C --> E[End]
D --> E
</div><scriptsrc="https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js"></script><script>mermaid.initialize({startOnLoad: true});</script></body></html>
Add a method to
Workflow::to_mermaid() -> str
Mermaid is flexible so not only graphs can be represented but also sequence diagram:
And flowcharts with:
And graphs with:
Find details about Mermaid here and JavaScript libraries.
The text was updated successfully, but these errors were encountered: