mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-08 01:38:50 +01:00
🎨 Improve exporting markdown https://github.com/siyuan-note/siyuan/issues/15458
This commit is contained in:
parent
2b4067df9a
commit
aecd230a61
1 changed files with 5 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue