differentiate rendering for plain text and rich text