Skip to main content

rewrite_references

Function rewrite_references 

Source
fn rewrite_references(
    document: &mut Document,
    labels: &BTreeMap<String, LabelTarget>,
    bib_keys: &BTreeSet<String>,
    diagnostics: &mut Vec<Diagnostic>,
) -> bool
Expand description

Rewrite each Reference node’s text attribute to point at its target. Returns true if any node was mutated this iteration: callers use that signal to drive the §6 stage 3 fixpoint loop.