From 832da3aa8ec22b1bd8c5b7d230996ac8a9ec5c25 Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Sat, 28 Nov 2015 12:44:10 +0000 Subject: [PATCH] support del tags for markdown --- src/HtmlUtils.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/HtmlUtils.js b/src/HtmlUtils.js index 824f59ab20..9afaf8adfe 100644 --- a/src/HtmlUtils.js +++ b/src/HtmlUtils.js @@ -23,6 +23,7 @@ var highlight = require('highlight.js'); var sanitizeHtmlParams = { allowedTags: [ 'font', // custom to matrix. deliberately no h1/h2 to stop people shouting. + 'del', // for markdown 'h3', 'h4', 'h5', 'h6', 'blockquote', 'p', 'a', 'ul', 'ol', 'nl', 'li', 'b', 'i', 'strong', 'em', 'strike', 'code', 'hr', 'br', 'div', 'table', 'thead', 'caption', 'tbody', 'tr', 'th', 'td', 'pre'