mirror of
https://github.com/resend/react-email.git
synced 2026-09-14 14:18:02 +08:00
chore: change wordwrap to be false by default (#2557)
Co-authored-by: gabriel miranda <gabrielmfern@outlook.com>
This commit is contained in:
committed by
GitHub
parent
6b0318b07c
commit
42056155a1
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@react-email/render": minor
|
||||
---
|
||||
|
||||
disable wordwrap in `toPlainText` by default
|
||||
@@ -16,6 +16,7 @@ export const plainTextSelectors: SelectorDefinition[] = [
|
||||
export function toPlainText(html: string, options?: HtmlToTextOptions) {
|
||||
return convert(html, {
|
||||
selectors: plainTextSelectors,
|
||||
wordwrap: false,
|
||||
...options,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user