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: https://github.com/siyuan-note/siyuan/issues/13636
Vanessa356cc2456248
diff --git a/app/src/protyle/export/index.ts b/app/src/protyle/export/index.tsindex 23eca12c26..9dfa5de834 100644--- a/app/src/protyle/export/index.ts+++ b/app/src/protyle/export/index.ts@@ -102,9 +102,9 @@ const renderPDF = async (id: string) => {<meta name="apple-mobile-web-app-capable" content="yes"><meta name="mobile-web-app-capable" content="yes"/><meta name="apple-mobile-web-app-status-bar-style" content="black">- <link rel="stylesheet" type="text/css" id="baseStyle" href="${servePath}/stage/build/export/base.css?${Constants.SIYUAN_VERSION}"/>- <link rel="stylesheet" type="text/css" id="themeDefaultStyle" href="${servePath}/appearance/themes/daylight/theme.css?${Constants.SIYUAN_VERSION}"/>- <script src="${servePath}/stage/protyle/js/protyle-html.js?v=3.0.5"></script>+ <link rel="stylesheet" type="text/css" id="baseStyle" href="${servePath}/stage/build/export/base.css?v=${Constants.SIYUAN_VERSION}"/>+ <link rel="stylesheet" type="text/css" id="themeDefaultStyle" href="${servePath}/appearance/themes/daylight/theme.css?v=${Constants.SIYUAN_VERSION}"/>+ <script src="${servePath}/stage/protyle/js/protyle-html.js?v=${Constants.SIYUAN_VERSION}"></script>${themeStyle}<title>${window.siyuan.languages.export} PDF</title><style>@@ -638,7 +638,7 @@ const getExportPath = (option: IExportOptions, removeAssets?: boolean, mergeSubd});};-const onExport = (data: IWebSocketData, filePath: string, exportOption: IExportOptions, removeAssets?: boolean, msgId?: string) => {+const onExport = async (data: IWebSocketData, filePath: string, exportOption: IExportOptions, removeAssets?: boolean, msgId?: string) => {let themeName = window.siyuan.config.appearance.themeLight;let mode = 0;if (["html", "htmlmd"].includes(exportOption.type) && window.siyuan.config.appearance.mode === 1) {@@ -659,16 +659,15 @@ const onExport = (data: IWebSocketData, filePath: string, exportOption: IExportO<meta name="apple-mobile-web-app-capable" content="yes"><meta name="mobile-web-app-capable" content="yes"/><meta name="apple-mobile-web-app-status-bar-style" content="black">- <script src="stage/protyle/js/lute/lute.min.js"></script>- <script src="stage/protyle/js/protyle-html.js?v=3.0.5"></script>- <link rel="stylesheet" type="text/css" id="baseStyle" href="stage/build/export/base.css?${Constants.SIYUAN_VERSION}"/>- <link rel="stylesheet" type="text/css" id="themeDefaultStyle" href="appearance/themes/${themeName}/theme.css?${Constants.SIYUAN_VERSION}"/>+ <link rel="stylesheet" type="text/css" id="baseStyle" href="stage/build/export/base.css?v=${Constants.SIYUAN_VERSION}"/>+ <link rel="stylesheet" type="text/css" id="themeDefaultStyle" href="appearance/themes/${themeName}/theme.css?v=${Constants.SIYUAN_VERSION}"/>+ <script src="stage/protyle/js/protyle-html.js?v=${Constants.SIYUAN_VERSION}"></script>${themeStyle}<title>${data.data.name}</title><!-- Exported by SiYuan v${Constants.SIYUAN_VERSION} --><style>body {font-family: var(--b3-font-family);background-color: var(--b3-theme-background);color: var(--b3-theme-on-background)}- ${setInlineStyle(false)}+ ${await setInlineStyle(false)}${document.getElementById("pluginsStyle").innerHTML}${getSnippetCSS()}</style>@@ -677,9 +676,9 @@ const onExport = (data: IWebSocketData, filePath: string, exportOption: IExportO<div class="${["htmlmd", "word"].includes(exportOption.type) ? "b3-typography" : "protyle-wysiwyg" + (window.siyuan.config.editor.displayBookmarkIcon ? " protyle-wysiwyg--attr" : "")}"style="max-width: 800px;margin: 0 auto;"id="preview">${data.data.content}</div>-<script src="appearance/icons/${window.siyuan.config.appearance.icon}/icon.js?${Constants.SIYUAN_VERSION}"></script>-<script src="stage/build/export/protyle-method.js?${Constants.SIYUAN_VERSION}"></script>-<script src="stage/protyle/js/lute/lute.min.js?${Constants.SIYUAN_VERSION}"></script>+<script src="appearance/icons/${window.siyuan.config.appearance.icon}/icon.js?v=${Constants.SIYUAN_VERSION}"></script>+<script src="stage/build/export/protyle-method.js?v=${Constants.SIYUAN_VERSION}"></script>+<script src="stage/protyle/js/lute/lute.min.js?v=${Constants.SIYUAN_VERSION}"></script><script>window.siyuan = {config: {