Fixed bug in markdown detection