🐛 Overlay block ref on PDF annotation ref lead to failure to query unreferenced assets https://github.com/siyuan-note/siyuan/issues/8186
This commit is contained in:
parent
f6750f2657
commit
9e17a2f1da
1 changed files with 4 additions and 0 deletions
|
@ -729,6 +729,10 @@ func assetsLinkDestsInTree(tree *parse.Tree) (ret []string) {
|
|||
return ast.WalkContinue
|
||||
}
|
||||
|
||||
if !strings.Contains(n.TextMarkFileAnnotationRefID, "/") {
|
||||
return ast.WalkSkipChildren
|
||||
}
|
||||
|
||||
dest := n.TextMarkFileAnnotationRefID[:strings.LastIndexByte(n.TextMarkFileAnnotationRefID, '/')]
|
||||
dest = strings.TrimSpace(dest)
|
||||
ret = append(ret, dest)
|
||||
|
|
Loading…
Add table
Reference in a new issue