Skip to content

Commit adb2534

Browse files
authored
chore: Apply suggestions from code review
1 parent 4515add commit adb2534

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/jsx-email/src/components/raw.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ declare global {
1212
}
1313
}
1414

15-
export interface RawOutputProps {
15+
export interface RawProps {
1616
content: string;
1717
disableOutputToPlainText?: boolean;
1818
}

packages/jsx-email/src/renderer/render.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export const renderPlainText = async (
1919
const result = await jsxToString(component);
2020
return htmlToText(result, {
2121
formatters: {
22-
rawOutput: (elem, _walk, builder) => {
22+
raw: (elem, _walk, builder) => {
2323
if (elem.children.length && elem.children[0].type === 'comment') {
2424
builder.addInline(unescapeForRawComponent(elem.children[0].data!.trim()));
2525
}
@@ -32,7 +32,7 @@ export const renderPlainText = async (
3232
{ format: 'skip', selector: '[data-skip="true"]' },
3333
{ options: { linkBrackets: false }, selector: 'a' },
3434
{
35-
format: 'rawOutput',
35+
format: 'raw',
3636
options: {},
3737
selector: 'jsx-email-raw'
3838
},

0 commit comments

Comments
 (0)