Fix markup for headings, code