Change permalinks -> heading links (#36739)
This commit is contained in:
@@ -21,7 +21,7 @@ import rewriteImgSources from './plugins/rewrite-asset-urls.js'
|
||||
import rewriteAssetImgTags from './plugins/rewrite-asset-img-tags.js'
|
||||
import useEnglishHeadings from './plugins/use-english-headings.js'
|
||||
import wrapInElement from './plugins/wrap-in-element.js'
|
||||
import permalinks from './plugins/permalinks.js'
|
||||
import headingLinks from './plugins/heading-links.js'
|
||||
|
||||
// plugins aren't designed to be used more than once,
|
||||
// this workaround lets us do that
|
||||
@@ -71,7 +71,7 @@ export default function createProcessor(context) {
|
||||
.use(remark2rehype, { allowDangerousHtml: true })
|
||||
.use(slug)
|
||||
.use(useEnglishHeadings, context)
|
||||
.use(permalinks)
|
||||
.use(headingLinks)
|
||||
.use(highlight, {
|
||||
languages: { graphql, dockerfile, http, groovy, erb, powershell },
|
||||
subset: false,
|
||||
|
||||
Reference in New Issue
Block a user