Fix markdown parsing