Skip to main content

try_parse_autolink

Function try_parse_autolink 

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

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

Automatic links have the form <url> or <email@example.com>. Returns Some((length, url_content)) if a valid automatic link is found.