Skip to main content

render_section

Function render_section 

Source
pub fn render_section<H: RenderHooks + ?Sized>(
    hooks: &H,
    out: &mut String,
    blocks: &[Block],
    ctx: &mut FootnoteCtx,
)
Expand description

Emit the endnote section: one <li> per footnote in index order, each ending in a back-link per marker that pointed at it.

Two passes, and the order is load-bearing. A note body can itself carry a marker ([^1]: see [^2]), so every body must render before ANY back-link list is written — otherwise a marker emitted late would have no matching back-link and the fnref ids would dangle.