@react-email/render 0.0.14 → 0.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -174,7 +174,7 @@ var renderAsync = (component, options) => __async(void 0, null, function* () {
|
|
|
174
174
|
}, options.htmlToTextOptions));
|
|
175
175
|
}
|
|
176
176
|
const doctype = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">';
|
|
177
|
-
const document = `${doctype}${html}`;
|
|
177
|
+
const document = `${doctype}${html.replace(/<!DOCTYPE.*?>/, "")}`;
|
|
178
178
|
if (options == null ? void 0 : options.pretty) {
|
|
179
179
|
return pretty(document);
|
|
180
180
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -146,7 +146,7 @@ var renderAsync = (component, options) => __async(void 0, null, function* () {
|
|
|
146
146
|
}, options.htmlToTextOptions));
|
|
147
147
|
}
|
|
148
148
|
const doctype = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">';
|
|
149
|
-
const document = `${doctype}${html}`;
|
|
149
|
+
const document = `${doctype}${html.replace(/<!DOCTYPE.*?>/, "")}`;
|
|
150
150
|
if (options == null ? void 0 : options.pretty) {
|
|
151
151
|
return pretty(document);
|
|
152
152
|
}
|