in dotcom-rendering/src/components/TextBlockComponent.tsx [272:299]
target: getAttrs(node)?.getNamedItem('target')?.value,
'data-link-name':
getAttrs(node)?.getNamedItem('data-link-name')?.value,
'data-component':
getAttrs(node)?.getNamedItem('data-component')?.value,
/**
* Affiliate links must have the rel attribute set to "sponsored"
* @see https://developers.google.com/search/docs/crawling-indexing/qualify-outbound-links
*/
rel: isSkimlink(href)
? 'sponsored'
: getAttrs(node)?.getNamedItem('rel')?.value,
key,
children,
});
}
case 'EM':
return jsx('em', {
key,
children,
});
case 'STRONG':
return jsx('strong', {
key,
children,
});
case '#text': {
if (node.textContent !== null) {