Skip to main content

Module svg

Module svg 

Source
Expand description

Self-contained SVG rendering of a Graph — no JavaScript, no external tools.

Mermaid needs a JS runtime and notebook front-ends sanitize <script> out of cell outputs, so diagrams that must show up inline (notebook reprs, offline HTML reports, GitHub previews) render through this pure data→string layer instead. Layout is a simple longest-path layering (left→right), which fits Soma’s small chain/fork DAGs; styling reuses the same status palette as the mermaid/graphviz overlay classes so a run reads identically in every rendering.