Added text parsing for paragraph elements.