</img> closing tags in the markdown is wrongly inserted