Skip to main content

parse_link_ref_def

Function parse_link_ref_def 

Source
pub fn parse_link_ref_def(raw: &str) -> Option<(String, String, Option<String>)>
Expand description

Parse the raw lexeme of a LinkRefDef token into (label, url, title). Returns None on malformed input; the lexer already validated the gross structure ([label]: plus a non-empty destination), so failures here mostly mean a missing ] or :.