mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
72098ae619
commit
1f66e778f4
1 changed files with 3 additions and 0 deletions
|
|
@ -2232,6 +2232,9 @@ func exportMarkdownContent0(id string, tree *parse.Tree, cloudAssetsBase string,
|
|||
}
|
||||
|
||||
sameDir := path.Dir(href) == currentDocDir
|
||||
if strings.HasPrefix(href, "#") {
|
||||
sameDir = true
|
||||
}
|
||||
href = util.FilterFilePath(href)
|
||||
if !sameDir {
|
||||
var relErr error
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue