Skip to content

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

:art: Improve list item convert to doc https://github.com/siyuan-note/siyuan/issues/12411

Daniel130420c6dc2e
diff --git a/kernel/model/listitem.go b/kernel/model/listitem.go
index db82b02f25..abbf32745b 100644
--- a/kernel/model/listitem.go
+++ b/kernel/model/listitem.go
@@ -66,7 +66,7 @@ func ListItem2Doc(srcListItemID, targetBoxID, targetPath string) (srcRootBlockID
}
var children []*ast.Node
- for c := listItemNode.FirstChild.Next; nil != c; c = c.Next {
+ for c := listItemNode.FirstChild; nil != c; c = c.Next {
children = append(children, c)
}
if 1 > len(children) {