🎨 Improve exporting Markdown https://github.com/siyuan-note/siyuan/issues/13273
This commit is contained in:
parent
575869c546
commit
483faa93dd
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue