Clean up markdown-to-html conversion