File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ Yields:
5151 map:
5252 { type: ' list' ,
5353 ordered: false ,
54- children: [ { type: ' listItem' , loose: true , children: [Object ] } ] } }
54+ children: [ { type: ' listItem' , loose: true , children: [Array ] } ] } }
5555```
5656
5757## API
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ function toc(node, options) {
2727 var result = search ( node , heading , settings . maxDepth || 6 ) ;
2828 var map = result . map ;
2929
30- result . map = map . length ? contents ( map , settings . tight ) : null ;
30+ result . map = map . length === 0 ? null : contents ( map , settings . tight ) ;
3131
3232 /* No given heading */
3333 if ( ! heading ) {
Original file line number Diff line number Diff line change 4242 "browserify" : " ^16.2.1" ,
4343 "esmangle" : " ^1.0.1" ,
4444 "istanbul" : " ^0.4.4" ,
45- "remark-attr" : " ^0.6.2 " ,
45+ "remark-attr" : " ^0.7.0 " ,
4646 "remark" : " ^10.0.0" ,
4747 "remark-cli" : " ^6.0.0" ,
4848 "remark-comment-config" : " ^5.0.0" ,
5252 "remark-usage" : " ^6.0.0" ,
5353 "remark-validate-links" : " ^7.0.0" ,
5454 "tape" : " ^4.6.0" ,
55- "xo" : " ^0.21.1 "
55+ "xo" : " ^0.23.0 "
5656 },
5757 "xo" : {
5858 "space" : 4 ,
You can’t perform that action at this time.
0 commit comments