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 {
href += "#" + defID
}
if tree.ID == bt.RootID {
href = "#" + defID
}
}
href = strings.TrimPrefix(href, currentDocDir)
href = util.FilterFilePath(href)