1
0
mirror of synced 2025-12-20 02:19:14 -05:00

Change permalinks -> heading links (#36739)

This commit is contained in:
Kevin Heis
2023-05-01 07:53:55 -07:00
committed by GitHub
parent d5281724e2
commit 2876eda1f9
17 changed files with 45 additions and 45 deletions

View File

@@ -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,