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

turn AUTOTITLE to actual titles (#33902)

This commit is contained in:
Peter Bengtsson
2023-01-25 09:58:59 -05:00
committed by GitHub
parent 8cd19db7e6
commit ce97d5d01e
5 changed files with 29 additions and 107 deletions

View File

@@ -44,10 +44,7 @@ export default function createProcessor(context) {
.use(raw)
.use(wrapInElement, { selector: 'ol > li img', wrapper: 'span.procedural-image-wrapper' })
.use(rewriteImgSources)
.use(rewriteLocalLinks, {
languageCode: context.currentLanguage,
version: context.currentVersion,
})
.use(rewriteLocalLinks, context)
.use(html)
}
@@ -58,9 +55,6 @@ export function createMinimalProcessor(context) {
.use(remark2rehype, { allowDangerousHtml: true })
.use(slug)
.use(raw)
.use(rewriteLocalLinks, {
languageCode: context.currentLanguage,
version: context.currentVersion,
})
.use(rewriteLocalLinks, context)
.use(html)
}