Commit eaea7f3
committed
fix: knownTypes should only apply to imported types
knownTypes entries were being applied to all types regardless of whether
they were local to the source package or imported from another package.
This caused local types that appeared in knownTypes to be rendered with
external links rather than local anchor links, breaking in-page
navigation when rendered locally.
Move the lookup inside the IsBasic/Imported branch so that it only
applies to types that cannot resolve to a local anchor.
Signed-off-by: Stephen Finucane <stephen@that.guru>1 parent 27bb554 commit eaea7f3
2 files changed
Lines changed: 5 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
83 | 82 | | |
84 | 83 | | |
85 | 84 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
| 58 | + | |
| 59 | + | |
63 | 60 | | |
64 | 61 | | |
65 | 62 | | |
| |||
0 commit comments