Fixed Markdown HTML parsing