diff --git a/kernel/model/assets.go b/kernel/model/assets.go index 915a0e039..4741f8351 100644 --- a/kernel/model/assets.go +++ b/kernel/model/assets.go @@ -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