fix(shared): link duplication with render's plainText mode (#2458)

Co-authored-by: gabriel miranda <gabrielmfern@outlook.com>
This commit is contained in:
Cédric Hennequin
2025-09-23 17:48:49 +02:00
committed by GitHub
parent 401cf15cfb
commit ca13220d2b
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"@react-email/render": minor
---
fix link duplication in plain text mode
@@ -9,7 +9,7 @@ export const plainTextSelectors: SelectorDefinition[] = [
{ selector: '[data-skip-in-text=true]', format: 'skip' },
{
selector: 'a',
options: { linkBrackets: false },
options: { linkBrackets: false, hideLinkHrefIfSameAsText: true },
},
];