Fix markdown parsing and displaying