mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 08:30:42 +02:00
🎨 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 {
|
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…
Add table
Add a link
Reference in a new issue