Deal with messy Markdown