Fix markdown extensions detection