From 2c8d9757dfd7ca5412a9087c222d7f0cb9c77de9 Mon Sep 17 00:00:00 2001 From: Jeffrey Chen <78434827+TCOTC@users.noreply.github.com> Date: Thu, 7 Aug 2025 21:43:12 +0800 Subject: [PATCH] :art: Improve the style of exported PDF (#15463) --- app/src/protyle/export/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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()}