From fb0c64a07e9fceb457dd1c6f19896bcc73d7d77b Mon Sep 17 00:00:00 2001 From: NGPixel Date: Sat, 16 Nov 2019 22:19:35 -0500 Subject: [PATCH] fix: exclude non-class attributes from markdown rendering --- server/modules/rendering/markdown-core/renderer.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/modules/rendering/markdown-core/renderer.js b/server/modules/rendering/markdown-core/renderer.js index 40ded6cf..afb5df25 100644 --- a/server/modules/rendering/markdown-core/renderer.js +++ b/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`)