Diagrams¶
Mermaid diagrams¶
marimo.mermaid
¶
mermaid(diagram: str) -> Html
Render a diagram with Mermaid.
Examples.
diagram = '''
graph LR
A[Square Rect] -- Link text --> B((Circle))
A --> C(Round Rect)
B --> D{Rhombus}
C --> D
'''
mo.mermaid(diagram)
Mermaid is a tool for making diagrams such as flow charts and graphs. See the Mermaid documentation for details.
Args.
diagram
: a string containing a Mermaid diagram
Returns.
- An
Html
object.