diff --git a/app/src/protyle/export/index.ts b/app/src/protyle/export/index.ts index 2b76a1ff9..ca8710f43 100644 --- a/app/src/protyle/export/index.ts +++ b/app/src/protyle/export/index.ts @@ -85,7 +85,7 @@ const getSnippetCSS = () => { let snippetCSS = ""; document.querySelectorAll("style").forEach((item) => { if (item.id.startsWith("snippet")) { - snippetCSS += item.innerHTML; + snippetCSS += item.outerHTML; } }); return snippetCSS; @@ -182,8 +182,8 @@ const renderPDF = async (id: string) => { } ${await setInlineStyle(false)} ${await getPluginStyle()} - ${getSnippetCSS()} + ${getSnippetCSS()}
@@ -676,8 +676,8 @@ const onExport = async (data: IWebSocketData, filePath: string, exportOption: IE body {font-family: var(--b3-font-family);background-color: var(--b3-theme-background);color: var(--b3-theme-on-background)} ${await setInlineStyle(false)} ${await getPluginStyle()} - ${getSnippetCSS()} + ${getSnippetCSS()}