Function link_prefix

Source
pub fn link_prefix(text: &str) -> (&str, bool)
Expand description

Extracts a prefix of the text that is a link and also returns whether the parentheses and brackets in the link were balanced.