Upgrade minor packages (#20960)
* Upgrade minor packages * Add dockerfile syntax back * Update create-processor.js * Update create-processor.js
This commit is contained in:
@@ -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' })
|
||||
|
||||
Reference in New Issue
Block a user