Skip to main content

extract_references

Function extract_references 

Source
pub fn extract_references(text: &TextContent) -> Vec<PositionedReference>
Expand description

Extract all references from a text node with their source positions.

Walks the InlineNode tree (from TextContent::inline_items()) and the raw source text in parallel. Non-reference nodes (Plain, Strong, Emphasis, Code, Math) are skipped over — only Reference nodes produce output.