parse paragraphs and headings