Skip to main content

parse_citations

Function parse_citations 

Source
pub fn parse_citations(content: &str) -> Vec<(usize, String)>
Expand description

Parse a message’s trailing citation list into (n, url) pairs, in the order they’re listed. Recognizes a Sources: line or a Sources heading (any level), then reads N. url / N) url lines until a non-matching line ends the section.