Markdown conversion improvements