1
0
mirror of synced 2025-12-20 02:19:14 -05:00

divs mess up the DOM and create empty <p> tags; use spans instead so they stay nested in <p>s

This commit is contained in:
Sarah Schneider
2021-04-22 11:15:01 -04:00
parent 56abbd2a6e
commit 7343b88e63

View File

@@ -27,7 +27,7 @@ module.exports = function createProcessor (context) {
.use(highlight, { languages: { graphql }, subset: false })
.use(raw)
.use(rewriteLegacyAssetPaths, context)
.use(wrapInElement, { selector: 'ol > li img', wrapper: 'div.procedural-image-wrapper' })
.use(wrapInElement, { selector: 'ol > li img', wrapper: 'span.procedural-image-wrapper' })
.use(rewriteLocalLinks, { languageCode: context.currentLanguage, version: context.currentVersion })
.use(html)
}