Parsing links with trailing punctuation