mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 23:20:13 +01:00
🎨 Improve markdown importing https://github.com/siyuan-note/siyuan/issues/13097 https://github.com/siyuan-note/siyuan/issues/13080
This commit is contained in:
parent
14f5570558
commit
a0491cd4ff
13 changed files with 21 additions and 18 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue