FIX: edge cases with bbcodes looking like reference definitions and empty links
Merge pull request #209 from Elberet/fix-bbcode-refs

FIX: edge cases with bbcodes looking like reference definitions and empty links