Sanitize Markdown output