From 10b86aec495e1fe88b2c54aa3d84e256f506d64e Mon Sep 17 00:00:00 2001 From: Junyoung Choi Date: Mon, 12 Mar 2018 17:40:27 +0900 Subject: [PATCH] Allow checkbox --- browser/lib/markdown.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/browser/lib/markdown.js b/browser/lib/markdown.js index 8b6b4d30..a2b9da51 100644 --- a/browser/lib/markdown.js +++ b/browser/lib/markdown.js @@ -55,11 +55,12 @@ class Markdown { // Sanitize use rinput before other plugins this.md.use(sanitize, { - allowedTags: ['img', 'iframe'], + allowedTags: ['img', 'iframe', 'input'], allowedAttributes: { '*': ['alt', 'style'], 'img': ['src', 'width', 'height'], - 'iframe': ['src', 'width', 'height', 'frameborder', 'allowfullscreen'] + 'iframe': ['src', 'width', 'height', 'frameborder', 'allowfullscreen'], + 'input': ['type', 'id', 'checked'] }, allowedIframeHostnames: ['www.youtube.com'] })