File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -310,7 +310,12 @@ function gatherExposedFactory() {
310310 cache [ filePath ] = true ;
311311
312312 visit ( ast , 'heading' , function ( node ) {
313- var id = node . attributes && node . attributes . id ;
313+ var data = node . data || { } ;
314+ var attributes = data . htmlAttributes || { } ;
315+ var id = attributes . id || data . id ;
316+
317+ /* istanbul ignore next */
318+ id = id || ( node . attributes && node . attributes . id ) ;
314319
315320 hasHeadings = true ;
316321
Original file line number Diff line number Diff line change 1313 ],
1414 "dependencies" : {
1515 "github-url-to-object" : " ^1.5.2" ,
16- "mdast-slug" : " ^1 .0.0" ,
16+ "mdast-slug" : " ^2 .0.0" ,
1717 "mdast-util-definitions" : " ^1.0.0" ,
1818 "unist-util-visit" : " ^1.0.0" ,
1919 "propose" : " 0.0.5" ,
You can’t perform that action at this time.
0 commit comments