Improve Markdown detection