fixed markdown parser