This commit is contained in:
Daniel 2025-08-07 19:41:23 +08:00
parent 2b4067df9a
commit aecd230a61
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -2010,7 +2010,11 @@ func exportMarkdownContent(id, ext string, exportRefMode int, defBlockIDs []stri
logging.LogErrorf("load tree by block id [%s] failed: %s", id, err)
return
}
isEmpty = nil == tree.Root.FirstChild.FirstChild
if ast.NodeParagraph == tree.Root.FirstChild.Type {
isEmpty = nil == tree.Root.FirstChild.FirstChild
}
exportedMd = exportMarkdownContent0(id, tree, "", false, false,
ext, exportRefMode, Conf.Export.BlockEmbedMode, Conf.Export.FileAnnotationRefMode,
Conf.Export.TagOpenMarker, Conf.Export.TagCloseMarker,