File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ declare global {
12
12
}
13
13
}
14
14
15
- export interface RawOutputProps {
15
+ export interface RawProps {
16
16
content : string ;
17
17
disableOutputToPlainText ?: boolean ;
18
18
}
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ export const renderPlainText = async (
19
19
const result = await jsxToString ( component ) ;
20
20
return htmlToText ( result , {
21
21
formatters : {
22
- rawOutput : ( elem , _walk , builder ) => {
22
+ raw : ( elem , _walk , builder ) => {
23
23
if ( elem . children . length && elem . children [ 0 ] . type === 'comment' ) {
24
24
builder . addInline ( unescapeForRawComponent ( elem . children [ 0 ] . data ! . trim ( ) ) ) ;
25
25
}
@@ -32,7 +32,7 @@ export const renderPlainText = async (
32
32
{ format : 'skip' , selector : '[data-skip="true"]' } ,
33
33
{ options : { linkBrackets : false } , selector : 'a' } ,
34
34
{
35
- format : 'rawOutput ' ,
35
+ format : 'raw ' ,
36
36
options : { } ,
37
37
selector : 'jsx-email-raw'
38
38
} ,
You can’t perform that action at this time.
0 commit comments