parse text formatting in paragraphs.