diff --git a/app/src/protyle/export/index.ts b/app/src/protyle/export/index.ts index 1b9e071c6..5340bcebb 100644 --- a/app/src/protyle/export/index.ts +++ b/app/src/protyle/export/index.ts @@ -72,6 +72,11 @@ const renderPDF = (id: string) => { keepFold: false, })); const servePath = window.location.protocol + "//" + window.location.host; + const isDefault = (window.siyuan.config.appearance.mode === 1 && window.siyuan.config.appearance.themeDark === "midnight") || (window.siyuan.config.appearance.mode === 0 && window.siyuan.config.appearance.themeLight === "daylight") + let themeStyle = ""; + if (!isDefault) { + themeStyle = `` + } const html = `
@@ -81,8 +86,8 @@ const renderPDF = (id: string) => { - - + + ${themeStyle}