Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2025-11-10 18:02:17 +08:00
parent 72098ae619
commit 1f66e778f4
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -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