Skip to content

Commit 7343b88

Browse files
committed
divs mess up the DOM and create empty <p> tags; use spans instead so they stay nested in <p>s
1 parent 56abbd2 commit 7343b88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/render-content/create-processor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ module.exports = function createProcessor (context) {
2727
.use(highlight, { languages: { graphql }, subset: false })
2828
.use(raw)
2929
.use(rewriteLegacyAssetPaths, context)
30-
.use(wrapInElement, { selector: 'ol > li img', wrapper: 'div.procedural-image-wrapper' })
30+
.use(wrapInElement, { selector: 'ol > li img', wrapper: 'span.procedural-image-wrapper' })
3131
.use(rewriteLocalLinks, { languageCode: context.currentLanguage, version: context.currentVersion })
3232
.use(html)
3333
}

0 commit comments

Comments
 (0)