fix markdown character escaping