Auto-convert tables to first col header (#35533)
This commit is contained in:
@@ -44,6 +44,12 @@ export default function createProcessor(context) {
|
||||
})
|
||||
.use(raw)
|
||||
.use(wrapInElement, { selector: 'ol > li img', wrapper: 'span.procedural-image-wrapper' })
|
||||
.use(wrapInElement, {
|
||||
selector: '.rowheaders tbody tr td:first-child',
|
||||
wrapper: 'th',
|
||||
// This moves what it finds in the selector inside the wrapper.
|
||||
rewrite: true,
|
||||
})
|
||||
.use(rewriteImgSources)
|
||||
.use(rewriteAssetImgTags)
|
||||
.use(rewriteLocalLinks, context)
|
||||
|
||||
Reference in New Issue
Block a user