Skip to content

Commit ca13220

Browse files
fix(shared): link duplication with render's plainText mode (#2458)
Co-authored-by: gabriel miranda <gabrielmfern@outlook.com>
1 parent 401cf15 commit ca13220

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/easy-singers-film.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@react-email/render": minor
3+
---
4+
5+
fix link duplication in plain text mode

packages/render/src/shared/utils/to-plain-text.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export const plainTextSelectors: SelectorDefinition[] = [
99
{ selector: '[data-skip-in-text=true]', format: 'skip' },
1010
{
1111
selector: 'a',
12-
options: { linkBrackets: false },
12+
options: { linkBrackets: false, hideLinkHrefIfSameAsText: true },
1313
},
1414
];
1515

0 commit comments

Comments
 (0)