fn render_target(target: &LabelTarget, label: &str) -> StringExpand description
Compute the display string for a reference to target.
Section targets render as their bare hierarchical counter (e.g.
"1.2"). Figure targets render kind-aware as "Figure N": the
localized figure_supplement joined to the figure’s flat
document-order counter with a non-breaking space (U+00A0): one
cohesive label token the layout engine honors, not a wrapping
decision made here (see number_figures). Generic targets
(paragraphs, images, raw blocks) have no counter and render as the
bare label.