Skip to content

Rail Horizontal Labels

A `%%metro line_spread: rails` section whose top-rail stations keep the default horizontal label angle instead of an angled one. Regression fixture: rail mode's deliberate top-rail label-band hug must be reflected in the section's content-hug target, not just its own layout, or the top-padding guard misreads the intended geometry as crowding (issue #1625).

Mermaid source
examples/topologies/rail_horizontal_labels.mmd
%%metro title: Rail section with horizontal labels
%%metro line_spread: rails | calling
%%metro line: a | Caller A | #2db572
%%metro line: b | Caller B | #0570b0
graph LR
subgraph calling [Calling]
hub[Recalibrate]
x[Caller A]
y[Caller B]
hub -->|a| x
hub -->|b| y
end
CLI command
Terminal window
nf-metro render examples/topologies/rail_horizontal_labels.mmd -o rail_horizontal_labels.svg
Rendered map
Rail section with horizontal labels 1 Recalibrate Caller A Caller B Caller A Caller B created with nf-metro v2.0.0+dev