Transform annotations when joining text nodes.