Browse Source

fix: exclude non-class attributes from markdown rendering

pull/1223/head
NGPixel 5 years ago
parent
commit
fb0c64a07e
1 changed files with 3 additions and 1 deletions
  1. 4
      server/modules/rendering/markdown-core/renderer.js

4
server/modules/rendering/markdown-core/renderer.js

@ -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`)

Loading…
Cancel
Save