An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: The assets do not display correctly in PDF export window and file https://github.com/siyuan-note/siyuan/issues/8016 Asset files no longer use HTTP server when exporting PDF https://github.com/siyuan-note/siyuan/issues/7965
Liang Ding8dda32d9a033
diff --git a/app/src/protyle/export/index.ts b/app/src/protyle/export/index.tsindex 609f1d582d..0b6190dbe3 100644--- a/app/src/protyle/export/index.ts+++ b/app/src/protyle/export/index.ts@@ -82,6 +82,7 @@ const renderPDF = (id: string) => {const html = `<!DOCTYPE html><html lang="${window.siyuan.config.appearance.lang}" data-theme-mode="light" data-light-theme="${window.siyuan.config.appearance.themeLight}" data-dark-theme="${window.siyuan.config.appearance.themeDark}"><head>+ <base href="${servePath}/"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>@@ -599,6 +600,7 @@ const onExport = (data: IWebSocketData, filePath: string, type: string, removeAsconst html = `<!DOCTYPE html><html lang="${window.siyuan.config.appearance.lang}" data-theme-mode="${getThemeMode()}" data-light-theme="${window.siyuan.config.appearance.themeLight}" data-dark-theme="${window.siyuan.config.appearance.themeDark}"><head>+ <base href="${data.data.url}"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>