cleanup Markdown code