This commit is contained in:
Daniel 2025-01-30 14:14:33 +08:00
parent 2e26a74d12
commit 197e86476a
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -965,6 +965,15 @@ func MissingAssets() (ret []string) {
continue
}
if strings.Contains(strings.ToLower(dest), ".pdf/") {
if idx := strings.LastIndex(dest, "/"); -1 < idx {
if ast.IsNodeIDPattern(dest[idx+1:]) {
// PDF 标注不计入 https://github.com/siyuan-note/siyuan/issues/13891
continue
}
}
}
if "" == assetsPathMap[dest] {
if strings.HasPrefix(dest, "assets/.") {
// Assets starting with `.` should not be considered missing assets https://github.com/siyuan-note/siyuan/issues/8821