Cleans up the markdown.