1
0
mirror of synced 2025-12-21 10:57:10 -05:00

remove legacy asset plugin (#23588)

This commit is contained in:
Rachael Sewell
2022-07-11 14:06:53 -07:00
committed by GitHub
parent e5f8d1c78a
commit efaf5f825d
3 changed files with 1 additions and 51 deletions

View File

@@ -20,7 +20,6 @@ import codeHeader from './plugins/code-header.js'
import rewriteLocalLinks from './plugins/rewrite-local-links.js'
import rewriteImgSources from './plugins/rewrite-asset-urls.js'
import useEnglishHeadings from './plugins/use-english-headings.js'
import rewriteLegacyAssetPaths from './plugins/rewrite-legacy-asset-paths.js'
import wrapInElement from './plugins/wrap-in-element.js'
import doctocatLinkIcon from './doctocat-link-icon.js'
const graphql = HighlightjsGraphql.definer
@@ -52,7 +51,6 @@ export default function createProcessor(context) {
subset: false,
})
.use(raw)
.use(rewriteLegacyAssetPaths, context)
.use(wrapInElement, { selector: 'ol > li img', wrapper: 'span.procedural-image-wrapper' })
.use(DISABLE_REWRITE_ASSET_URLS ? null : rewriteImgSources)
.use(rewriteLocalLinks, {