Skip to content

Commit

Permalink
fix: exclude non-class attributes from markdown rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
NGPixel committed Nov 17, 2019
1 parent d6f2176 commit fb0c64a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/modules/rendering/markdown-core/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`)
Expand Down

0 comments on commit fb0c64a

Please sign in to comment.