renamed markdown parsing function