fix: exclude non-class attributes from markdown rendering

This commit is contained in:
NGPixel 2019-11-16 22:19:35 -05:00
parent d6f2176de2
commit fb0c64a07e

View File

@ -30,7 +30,9 @@ module.exports = {
}
})
mkdown.use(mdAttrs)
mkdown.use(mdAttrs, {
allowedAttributes: ['id', 'class']
})
for (let child of this.children) {
const renderer = require(`../${_.kebabCase(child.key)}/renderer.js`)