(Bug 5265) Better detection of links in Markdown

Don't just remove any brackets; look for any brackets immediately
followed by parentheses.