typst_syntax

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.