diff --git a/app/src/protyle/export/index.ts b/app/src/protyle/export/index.ts index a9fadc5fb..785d9d11f 100644 --- a/app/src/protyle/export/index.ts +++ b/app/src/protyle/export/index.ts @@ -177,7 +177,7 @@ const renderPDF = async (id: string) => { .b3-label:last-child { border-bottom: none; } - ${await setInlineStyle(false)} + ${await setInlineStyle(false, servePath)} ${await getPluginStyle()} ${getSnippetCSS()} @@ -644,28 +644,29 @@ export const onExport = async (data: IWebSocketData, filePath: string, exportOpt mode = 1; } 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"); + const servePath = window.location.protocol + "//" + window.location.host; let themeStyle = ""; if (!isDefault) { - themeStyle = ``; + themeStyle = ``; } const html = ` - + - - - + + + ${themeStyle} ${data.data.name} ${getSnippetCSS()} @@ -673,9 +674,9 @@ export const onExport = async (data: IWebSocketData, filePath: string, exportOpt
${data.data.content}
- - - + + +