mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-03 04:31:50 +08:00
🎨 Improve exporting Markdown https://github.com/siyuan-note/siyuan/issues/13273
This commit is contained in:
parent
575869c546
commit
483faa93dd
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user