File tree Expand file tree Collapse file tree 2 files changed +11
-8
lines changed
packages/typedoc-plugin-markdown/src/theme/context/partials Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' typedoc-plugin-markdown ' : patch
3+ ---
4+
5+ - Resolve "does not have an anchor but one was requested" warnings in verbose log mode (#850 ).
6+ - Guard against undefined types causing errors in complex types in tables (thanks @ilyabo ).
Original file line number Diff line number Diff line change @@ -8,15 +8,12 @@ export function memberContainer(
88 options : { headingLevel : number ; nested ?: boolean ; groupTitle ?: string } ,
99) : string {
1010 const md : string [ ] = [ ] ;
11- const anchor = this . router . hasUrl ( model )
12- ? this . router . getAnchor ( model )
13- : undefined ;
11+ const anchor =
12+ ! this . router . hasOwnDocument ( model ) && this . router . hasUrl ( model )
13+ ? this . router . getAnchor ( model )
14+ : undefined ;
1415
15- if (
16- ! this . router . hasOwnDocument ( model ) &&
17- anchor &&
18- this . options . getValue ( 'useHTMLAnchors' )
19- ) {
16+ if ( anchor && this . options . getValue ( 'useHTMLAnchors' ) ) {
2017 md . push ( `<a id="${ anchor } "></a>` ) ;
2118 }
2219
You can’t perform that action at this time.
0 commit comments