Skip to main content

try_parse_reference_image

Function try_parse_reference_image 

Source
pub fn try_parse_reference_image(
    text: &str,
    allow_shortcut: bool,
) -> Option<(usize, &str, String, bool)>
Expand description

Try to parse a reference-style image: ![alt][ref], ![alt][], or ![alt] Returns (total_len, alt_text, label, is_shortcut) if successful.