Skip to main content

try_parse_inline_link

Function try_parse_inline_link 

Source
pub fn try_parse_inline_link(
    text: &str,
) -> Option<(usize, &str, &str, Option<&str>)>
Expand description

Try to parse an inline link starting at the current position.

Inline links have the form [text](url) or [text](url "title"). Can also have trailing attributes: [text](url){#id .class}. Returns Some((length, text_content, dest_content, raw_attributes)) if a valid link is found.