Markdown detection fix