mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 13:56:32 +08:00
feat(资源定位): 优化资源定位与原文汇总
This commit is contained in:
1 parent
2db0cbcb95
commit
e4d38eb289
2 files changed
+28
-11
No files matched your search
@@ -151,7 +151,7 @@ func (r *Renderer) ResourceLocations(ctx context.Context, kind, id string, refer
|
||||
for id := range wanted {
|
||||
targets[id] = &StructureTarget{ID: id}
|
||||
}
|
||||
visitor := &structureVisitor{ctx: ctx, renderer: &view, targets: targets}
|
||||
visitor := &structureVisitor{ctx: ctx, renderer: &view, targets: targets, boundsOnly: true}
|
||||
if err := view.WalkPage(content, visitor); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user