parsing paragraphs with sub-headlines correctly so far