Emits Mermaid flowchart text for the active graph: node label + kind, state
coloring (cached/ready/held/blocked/failed), and branch grouping via
subgraphs. Produces text without additional dependencies. The output renders
on GitHub and in Quarto. Embed it in bg_export_report.
Usage
bg_graph_mermaid(project, direction = "TD")
Arguments
- project
A bg_handle.
- direction
Mermaid graph direction (default "TD"; also "LR").
Value
A character scalar of Mermaid flowchart text with class
bg_mermaid, whose print method renders the raw text (so the result is
copy-pasteable at the console and embeddable as a string).