modified markdown parsing