🎨 pdf?page 资源文件链接会被判定为未引用资源 Fix https://github.com/siyuan-note/siyuan/issues/5649

This commit is contained in:
Liang Ding 2022-08-16 10:24:38 +08:00
parent 811d088ff0
commit 103cbf8d15
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
4 changed files with 30 additions and 17 deletions

View file

@ -573,6 +573,11 @@ func UnusedAssets() (ret []string) {
continue
}
if idx := strings.Index(dest, "?"); 0 < idx {
// `pdf?page` 资源文件链接会被判定为未引用资源 https://github.com/siyuan-note/siyuan/issues/5649
dest = dest[:idx]
}
if "" == assetsPathMap[dest] {
continue
}