File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
lib/render-content/plugins Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ const GithubSlugger = require('github-slugger')
22const Entities = require ( 'html-entities' ) . XmlEntities
33const toString = require ( 'hast-util-to-string' )
44const visit = require ( 'unist-util-visit' )
5- const slugger = new GithubSlugger ( )
65const entities = new Entities ( )
76
87const matcher = node => (
@@ -20,7 +19,7 @@ module.exports = function useEnglishHeadings ({ englishHeadings }) {
2019 // find English heading in the collection
2120 const englishHeading = englishHeadings [ entities . encode ( text ) ]
2221 // get English slug
23- const englishSlug = slugger . slug ( englishHeading )
22+ const englishSlug = GithubSlugger . slug ( englishHeading )
2423 // use English slug for heading ID and link
2524 node . properties . id = englishSlug
2625 } )
You can’t perform that action at this time.
0 commit comments