From 4318aa446369eaf4ea85982ba4919b5d47340552 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Tue, 10 Oct 2023 20:51:28 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/issues/9376 --- app/src/protyle/export/index.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/src/protyle/export/index.ts b/app/src/protyle/export/index.ts index dac8c9da933..93d22268f03 100644 --- a/app/src/protyle/export/index.ts +++ b/app/src/protyle/export/index.ts @@ -78,6 +78,12 @@ const renderPDF = (id: string) => { themeStyle = ``; } // data-theme-mode="light" https://github.com/siyuan-note/siyuan/issues/7379 + let snippetCSS = ""; + document.querySelectorAll("style").forEach((item) => { + if (item.id.startsWith("snippet")) { + snippetCSS += item.innerHTML; + } + }) const html = ` @@ -149,6 +155,7 @@ const renderPDF = (id: string) => {