@maily-to/core 0.2.5 → 0.2.7
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/extensions/index.cjs +3 -1
- package/dist/extensions/index.cjs.map +1 -1
- package/dist/extensions/index.mjs +3 -1
- package/dist/extensions/index.mjs.map +1 -1
- package/dist/index.cjs +3 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +3 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +104 -13
package/dist/index.mjs
CHANGED
|
@@ -7331,8 +7331,10 @@ function HTMLCodeBlockView(props) {
|
|
|
7331
7331
|
}, "");
|
|
7332
7332
|
const htmlParser = new DOMParser();
|
|
7333
7333
|
const htmlDoc = htmlParser.parseFromString(text2, "text/html");
|
|
7334
|
+
const style = htmlDoc.querySelectorAll("style");
|
|
7334
7335
|
const body = htmlDoc.body;
|
|
7335
|
-
|
|
7336
|
+
const combinedStyle = Array.from(style).map((s) => s.innerHTML).join("\n");
|
|
7337
|
+
return `<style>${combinedStyle}</style>${body.innerHTML}`;
|
|
7336
7338
|
}, [activeTab]);
|
|
7337
7339
|
const isEmpty = html2 === "";
|
|
7338
7340
|
return /* @__PURE__ */ jsxs29(
|