Daniel 2024-11-10 12:04:56 +08:00
parent 14f5570558
commit a0491cd4ff
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
13 changed files with 21 additions and 18 deletions

View file

@ -341,9 +341,9 @@ func RenderTemplate(p, id string, preview bool) (tree *parse.Tree, dom string, e
})
for _, n := range nodesNeedAppendChild {
if ast.NodeBlockquote == n.Type {
n.FirstChild.InsertAfter(treenode.NewParagraph())
n.FirstChild.InsertAfter(treenode.NewParagraph(""))
} else {
n.AppendChild(treenode.NewParagraph())
n.AppendChild(treenode.NewParagraph(""))
}
}
for _, n := range unlinks {