FIX: Markdown parser: empty links and bbcode parsed as link refs
Merge pull request #2731 from Elberet/fix-parser

FIX: Markdown parser: empty links and bbcode parsed as link refs