Handle highlights around text nodes