@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.
@@ -5824,8 +5824,10 @@ function HTMLCodeBlockView(props) {
5824
5824
  }, "");
5825
5825
  const htmlParser = new DOMParser();
5826
5826
  const htmlDoc = htmlParser.parseFromString(text2, "text/html");
5827
+ const style = htmlDoc.querySelectorAll("style");
5827
5828
  const body = htmlDoc.body;
5828
- return body.innerHTML;
5829
+ const combinedStyle = Array.from(style).map((s) => s.innerHTML).join("\n");
5830
+ return `<style>${combinedStyle}</style>${body.innerHTML}`;
5829
5831
  }, [activeTab]);
5830
5832
  const isEmpty = html2 === "";
5831
5833
  return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(