Added support for paragraphs and paragraph text height