From 571d159a1f01b558d0d4863666383550f4160ddb Mon Sep 17 00:00:00 2001 From: Junyoung Choi Date: Tue, 13 Mar 2018 22:00:07 +0900 Subject: [PATCH] Add table and details stuff to whitelist --- browser/lib/markdown.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/browser/lib/markdown.js b/browser/lib/markdown.js index a2b9da51..b16838f6 100644 --- a/browser/lib/markdown.js +++ b/browser/lib/markdown.js @@ -55,7 +55,7 @@ class Markdown { // Sanitize use rinput before other plugins this.md.use(sanitize, { - allowedTags: ['img', 'iframe', 'input'], + allowedTags: ['img', 'iframe', 'input', 'details', 'summary', 'table', 'th', 'tr', 'td', 'thead', 'tfoot', 'tbody'], allowedAttributes: { '*': ['alt', 'style'], 'img': ['src', 'width', 'height'],