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: Improve pandoc export
Daniela38a4c80d295
diff --git a/kernel/util/pandoc.go b/kernel/util/pandoc.goindex 67470c3675..2b1bb41bf3 100644--- a/kernel/util/pandoc.go+++ b/kernel/util/pandoc.go@@ -111,6 +111,8 @@ func InitPandoc() {return}+ defer eventbus.Publish(EvtConfPandocInitialized)+PandocTemplatePath = filepath.Join(WorkingDir, "pandoc-resources", "pandoc-template.docx")if !gulu.File.IsExist(PandocTemplatePath) {PandocTemplatePath = filepath.Join(WorkingDir, "pandoc", "pandoc-resources", "pandoc-template.docx")@@ -129,10 +131,7 @@ func InitPandoc() {logging.LogWarnf("pandoc color filter file [%s] not found", PandocColorFilterPath)}- defer eventbus.Publish(EvtConfPandocInitialized)-tempPandocDir := filepath.Join(TempDir, "pandoc")-if confPath := filepath.Join(ConfDir, "conf.json"); gulu.File.IsExist(confPath) {// Workspace built-in Pandoc is no longer initialized after customizing Pandoc path https://github.com/siyuan-note/siyuan/issues/8377if data, err := os.ReadFile(confPath); err == nil {