fix markdown mode