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) => {