Daniel 2025-08-08 18:32:52 +08:00
parent ec7ca366ba
commit 41b8271c5d
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -2012,8 +2012,16 @@ func exportMarkdownContent(id, ext string, exportRefMode int, defBlockIDs []stri
return
}
if ast.NodeParagraph == tree.Root.FirstChild.Type {
isEmpty = nil == tree.Root.FirstChild.FirstChild
for c := tree.Root.FirstChild; nil != c; c = c.Next {
if ast.NodeParagraph == c.Type {
isEmpty = nil == c.FirstChild
if !isEmpty {
break
}
} else {
isEmpty = false
break
}
}
exportedMd = exportMarkdownContent0(id, tree, "", false, false, false,