Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: 导出没有内容的引述块为模板时添加空段落块 https://github.com/siyuan-note/siyuan/issues/7211

Liang Ding79efdb8e08e6
diff --git a/kernel/model/template.go b/kernel/model/template.go
index bc84053a32..73d546d559 100644
--- a/kernel/model/template.go
+++ b/kernel/model/template.go
@@ -258,7 +258,11 @@ func renderTemplate(p, id string) (string, error) {
return ast.WalkContinue
})
for _, n := range nodesNeedAppendChild {
- n.AppendChild(treenode.NewParagraph())
+ if ast.NodeBlockquote == n.Type {
+ n.FirstChild.InsertAfter(treenode.NewParagraph())
+ } else {
+ n.AppendChild(treenode.NewParagraph())
+ }
}
for _, n := range unlinks {
n.Unlink()