Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2026-01-26 09:44:19 +08:00
parent 40ae99e278
commit 9010967b04
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 5 additions and 12 deletions

View file

@ -2221,19 +2221,12 @@ func walkRelationAvs(avID string, exportAvIDs *hashset.Set) {
}
}
func ExportMarkdownContent(id string, refMode, embedMode, addTitleMode int, addYfm, fillCSSVar, adjustHeadingLv, imgTag bool) (hPath, exportedMd string) {
func ExportMarkdownContent(id string, refMode, embedMode int, addYfm, fillCSSVar, adjustHeadingLv, imgTag, addTitle bool) (hPath, exportedMd string) {
bt := treenode.GetBlockTree(id)
if nil == bt {
return
}
addTitle := Conf.Export.AddTitle
if 1 == addTitleMode { // 0未指定遵循全局设置 Conf.Export.AddTitle1添加标题2不添加标题
addTitle = true
} else if 2 == addTitleMode {
addTitle = false
}
tree := prepareExportTree(bt)
hPath = tree.HPath
exportedMd = exportMarkdownContent0(id, tree, "", false, adjustHeadingLv, imgTag,