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

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