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

@ -77,7 +77,7 @@ func html2BlockDOM(c *gin.Context) {
}
if ast.NodeListItem == n.Type && nil == n.FirstChild {
newNode := treenode.NewParagraph()
newNode := treenode.NewParagraph("")
n.AppendChild(newNode)
n.SetIALAttr("updated", util.TimeFromID(newNode.ID))
return ast.WalkSkipChildren
@ -101,7 +101,7 @@ func html2BlockDOM(c *gin.Context) {
row := head.FirstChild
if nil != row.FirstChild && nil == row.FirstChild.Next {
cell := row.FirstChild
p := treenode.NewParagraph()
p := treenode.NewParagraph("")
var contents []*ast.Node
for c := cell.FirstChild; nil != c; c = c.Next {
contents = append(contents, c)