mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-29 21:08:49 +01:00
🎨 Improved PDF asset file unreferenced detection https://github.com/siyuan-note/siyuan/issues/7964
This commit is contained in:
parent
02366f3c95
commit
204c3b469d
2 changed files with 20 additions and 9 deletions
|
|
@ -403,6 +403,10 @@ func ExportMarkdownHTML(id, savePath string, docx, merge bool) (name, dom string
|
|||
assets := assetsLinkDestsInTree(tree)
|
||||
for _, asset := range assets {
|
||||
if strings.HasPrefix(asset, "assets/") {
|
||||
if strings.Contains(asset, "?") {
|
||||
asset = asset[:strings.LastIndex(asset, "?")]
|
||||
}
|
||||
|
||||
srcAbsPath, err := GetAssetAbsPath(asset)
|
||||
if nil != err {
|
||||
logging.LogWarnf("resolve path of asset [%s] failed: %s", asset, err)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue