@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.
@@ -5777,8 +5777,10 @@ function HTMLCodeBlockView(props) {
5777
5777
  }, "");
5778
5778
  const htmlParser = new DOMParser();
5779
5779
  const htmlDoc = htmlParser.parseFromString(text2, "text/html");
5780
+ const style = htmlDoc.querySelectorAll("style");
5780
5781
  const body = htmlDoc.body;
5781
- return body.innerHTML;
5782
+ const combinedStyle = Array.from(style).map((s) => s.innerHTML).join("\n");
5783
+ return `<style>${combinedStyle}</style>${body.innerHTML}`;
5782
5784
  }, [activeTab]);
5783
5785
  const isEmpty = html2 === "";
5784
5786
  return /* @__PURE__ */ jsxs21(