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

Pretty format (#20352)

* Update prettier flow to include JS

* Run prettier

* ...run prettier
This commit is contained in:
Kevin Heis
2021-07-14 14:35:01 -07:00
committed by GitHub
parent ae3db795f4
commit 8a56437c93
333 changed files with 6904 additions and 5350 deletions

View File

@@ -16,7 +16,7 @@ import rewriteLegacyAssetPaths from './plugins/rewrite-legacy-asset-paths.js'
import wrapInElement from './plugins/wrap-in-element.js'
const graphql = xHighlightjsGraphql.definer
export default function createProcessor (context) {
export default function createProcessor(context) {
return unified()
.use(markdown)
.use(remarkCodeExtra, { transform: codeHeader })
@@ -29,6 +29,9 @@ export default function createProcessor (context) {
.use(raw)
.use(rewriteLegacyAssetPaths, context)
.use(wrapInElement, { selector: 'ol > li img', wrapper: 'span.procedural-image-wrapper' })
.use(rewriteLocalLinks, { languageCode: context.currentLanguage, version: context.currentVersion })
.use(rewriteLocalLinks, {
languageCode: context.currentLanguage,
version: context.currentVersion,
})
.use(html)
}