Under the hoodTier: how much it should matter to you
2Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
ElsewhereArea: what it touches
Internal ChangesKind: in v2.1.268,
Internal ChangesSection of the release
What
The component that automatically turns URLs found in text into clickable links now accepts an optional linkHref function. When provided, each detected URL is passed through this function to decide its actual link destination, and if the function returns nothing (undefined), that particular match is not turned into a link at all.
Why
This lets code using the text renderer redirect, rewrite, or selectively disable auto-linking of URLs, rather than always linking to the exact raw URL text that was detected.