mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-03 05:21:10 +08:00
🎨 导出没有内容的引述块为模板时添加空段落块 https://github.com/siyuan-note/siyuan/issues/7211
This commit is contained in:
parent
204580bf36
commit
79efdb8e08
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user