From 0f275b975d63716bd34a31f2fcf3d626a633c1e8 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Sun, 8 Sep 2024 17:53:36 +0800 Subject: [PATCH] :art: Improve list item convert to doc https://github.com/siyuan-note/siyuan/issues/12411 --- kernel/model/listitem.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kernel/model/listitem.go b/kernel/model/listitem.go index abbf32745..69af99e83 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) {