1
0
mirror of synced 2025-12-20 10:28:40 -05:00

Upgrade minor packages (#20960)

* Upgrade minor packages

* Add dockerfile syntax back

* Update create-processor.js

* Update create-processor.js
This commit is contained in:
Kevin Heis
2021-08-19 12:57:39 -07:00
committed by GitHub
parent 5e40655c66
commit dc952b9dcf
7 changed files with 1524 additions and 2944 deletions

View File

@@ -8,6 +8,11 @@ import raw from 'rehype-raw'
import slug from 'rehype-slug'
import autolinkHeadings from 'rehype-autolink-headings'
import highlight from 'rehype-highlight'
import dockerfile from 'highlight.js/lib/languages/dockerfile.js'
import http from 'highlight.js/lib/languages/http.js'
import groovy from 'highlight.js/lib/languages/groovy.js'
import erb from 'highlight.js/lib/languages/erb.js'
import powershell from 'highlight.js/lib/languages/powershell.js'
import html from 'rehype-stringify'
import HighlightjsGraphql from 'highlightjs-graphql'
import remarkCodeExtra from 'remark-code-extra'
@@ -28,7 +33,10 @@ export default function createProcessor(context) {
.use(slug)
.use(useEnglishHeadings, context)
.use(autolinkHeadings, { behavior: 'wrap' })
.use(highlight, { languages: { graphql }, subset: false })
.use(highlight, {
languages: { graphql, dockerfile, http, groovy, erb, powershell },
subset: false,
})
.use(raw)
.use(rewriteLegacyAssetPaths, context)
.use(wrapInElement, { selector: 'ol > li img', wrapper: 'span.procedural-image-wrapper' })