An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: fix https://github.com/siyuan-note/siyuan/issues/9376
Vanessa4318aa446369
diff --git a/app/src/protyle/export/index.ts b/app/src/protyle/export/index.tsindex dac8c9da93..93d22268f0 100644--- a/app/src/protyle/export/index.ts+++ b/app/src/protyle/export/index.ts@@ -78,6 +78,12 @@ const renderPDF = (id: string) => {themeStyle = `<link rel="stylesheet" type="text/css" id="themeStyle" href="${servePath}/appearance/themes/${window.siyuan.config.appearance.themeLight}/theme.css?${Constants.SIYUAN_VERSION}"/>`;}// 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 = `<!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>@@ -149,6 +155,7 @@ const renderPDF = (id: string) => {</style><style>${document.getElementById("pluginsStyle").innerHTML}+ ${snippetCSS}</style></head><body>