Class MermaidRenderer

Assembly: redb.Route.dll

Renders definition trees as a Mermaid flowchart — documentation diagrams
generated from the same source as the running route, so they cannot go stale. Works over the
definition tree, which means both spellings of a route — XML and fluent C# — draw
identically. Deliberately simple: horizontal flow, node categories differ by shape,
conditions carry their authored text; it is not a visual editor and not its prototype.

public static class MermaidRenderer

Inheritance

Object→MermaidRenderer

Methods

Render(IEnumerable<IProcessorDefinition>, string)

Renders the routes as one flowchart. Top-down by default: Mermaid cannot wrap a long

public static string Render(IEnumerable<IProcessorDefinition> roots, string direction = "TD")