mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 00:20:47 +02:00
This commit is contained in:
parent
ec7ca366ba
commit
41b8271c5d
1 changed files with 10 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue