fn target_length(text: &str) -> usize
How much of text, which follows ](, is the target: up to the space before a title or the closing parenthesis, or all of an <…> target.
text
](
<…>