feat: improve table rendering + add markdown-it-decorate module
This commit is contained in:
@@ -243,6 +243,16 @@ module.exports = {
|
||||
}
|
||||
})
|
||||
|
||||
// --------------------------------
|
||||
// Wrap root table nodes
|
||||
// --------------------------------
|
||||
|
||||
$('body').contents().toArray().forEach(item => {
|
||||
if (item && item.name === 'table' && item.parent.name === 'body') {
|
||||
$(item).wrap('<div class="table-container"></div>')
|
||||
}
|
||||
})
|
||||
|
||||
// --------------------------------
|
||||
// Escape mustache expresions
|
||||
// --------------------------------
|
||||
|
Reference in New Issue
Block a user