File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -79,23 +79,19 @@ export default (ctx) => ({
7979 const examples =
8080 comment ?. blockTags ?. filter ( ( t ) => t . tag === "@example" ) ?? [ ] ;
8181 if ( ! examples . length ) return "" ;
82-
8382 const bodies = examples
8483 . map ( ( tag ) => {
8584 const body = ctx . helpers . getCommentParts ( tag . content ) . trim ( ) ;
86- if ( ! body ) return null ;
87-
85+ if ( ! body ) return null ;
8886 if ( headingLevel != null ) {
8987 const prefix = "#" . repeat ( headingLevel + 1 ) ;
9088 const suffix =
9189 examples . length > 1 ? ` ${ examples . indexOf ( tag ) + 1 } ` : "" ;
9290 return `${ prefix } Example${ suffix } \n\n${ body } ` ;
9391 }
94-
9592 return body ;
9693 } )
9794 . filter ( Boolean ) ;
98-
9995 return bodies . length ? "\n\n" + bodies . join ( "\n\n" ) : "" ;
10096 } ,
10197} ) ;
Original file line number Diff line number Diff line change @@ -45,9 +45,7 @@ export default (ctx) => {
4545 const comment = options . multipleSignatures
4646 ? model . comment
4747 : model . comment || model . parent ?. comment ;
48-
4948 const stability = ctx . helpers . stabilityBlockquote ( comment ) ;
50-
5149 return [
5250 stability ,
5351 stability && "" ,
You can’t perform that action at this time.
0 commit comments