This commit is contained in:
Daniel 2024-11-26 10:58:25 +08:00
parent 575869c546
commit 483faa93dd
No known key found for this signature in database
GPG Key ID: 86211BA83DF03017

View File

@ -1985,6 +1985,9 @@ func exportMarkdownContent0(tree *parse.Tree, cloudAssetsBase string, assetsDest
if "d" != bt.Type { if "d" != bt.Type {
href += "#" + defID href += "#" + defID
} }
if tree.ID == bt.RootID {
href = "#" + defID
}
} }
href = strings.TrimPrefix(href, currentDocDir) href = strings.TrimPrefix(href, currentDocDir)
href = util.FilterFilePath(href) href = util.FilterFilePath(href)