feat: improve table rendering + add markdown-it-decorate module

This commit is contained in:
NGPixel committed 2022-11-08 22:40:43 -05:00
1 parent d98e0b3cd0
commit 9fbc25adb8
7 files changed
+102 -5

No files matched your search

@@ -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
// --------------------------------