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: Add `data-doc-type` and attribute when exporting image and PDF https://github.com/siyuan-note/siyuan/issues/9497
Danielfd32095929e8
diff --git a/kernel/api/export.go b/kernel/api/export.goindex 651efd3d4a..edf88d88c8 100644--- a/kernel/api/export.go+++ b/kernel/api/export.go@@ -467,6 +467,7 @@ func exportPreviewHTML(c *gin.Context) {// 导出 PDF 预览时点击块引转换后的脚注跳转不正确 https://github.com/siyuan-note/siyuan/issues/5894content = strings.ReplaceAll(content, "http://"+util.LocalHost+":"+util.ServerPort+"/#", "#")+ // Add `data-doc-type` and attribute when exporting image and PDF https://github.com/siyuan-note/siyuan/issues/9497attrs := map[string]string{}var typ stringif nil != node {