@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/index.cjs CHANGED
@@ -7304,8 +7304,10 @@ function HTMLCodeBlockView(props) {
7304
7304
  }, "");
7305
7305
  const htmlParser = new DOMParser();
7306
7306
  const htmlDoc = htmlParser.parseFromString(text2, "text/html");
7307
+ const style = htmlDoc.querySelectorAll("style");
7307
7308
  const body = htmlDoc.body;
7308
- return body.innerHTML;
7309
+ const combinedStyle = Array.from(style).map((s) => s.innerHTML).join("\n");
7310
+ return `<style>${combinedStyle}</style>${body.innerHTML}`;
7309
7311
  }, [activeTab]);
7310
7312
  const isEmpty = html2 === "";
7311
7313
  return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(