Skip to content

Commit 4205615

Browse files
chore: change wordwrap to be false by default (#2557)
Co-authored-by: gabriel miranda <gabrielmfern@outlook.com>
1 parent 6b0318b commit 4205615

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/legal-lemons-jump.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+
disable wordwrap in `toPlainText` by default

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export const plainTextSelectors: SelectorDefinition[] = [
1616
export function toPlainText(html: string, options?: HtmlToTextOptions) {
1717
return convert(html, {
1818
selectors: plainTextSelectors,
19+
wordwrap: false,
1920
...options,
2021
});
2122
}

0 commit comments

Comments
 (0)