Use Urls for references in GFM
Use image Urls for Emoji in GFM

Fixes #2617
Fix parsing of ref-like Urls in links and images in GFM

Fixes #2166
Fix markdown for note events