feat: diagram rendering + post-processor (wip)

This commit is contained in:
NGPixel
2020-07-12 15:58:45 -04:00
parent 5f99b30024
commit 52d0af19b4
4 changed files with 24 additions and 2 deletions

View File

@@ -0,0 +1,10 @@
module.exports = {
async init($, config) {
$(`pre.diagram`).each((idx, elm) => {
$(elm).children('svg').each((sidx, svg) => {
$(svg).removeAttr('content')
})
$(elm).replaceWith($(`<div class="diagram">${$(elm).html()}</div>`))
})
}
}