support del tags for markdown

pull/21833/head
Matthew Hodgson 2015-11-28 12:44:10 +00:00
parent 144feb6af9
commit 832da3aa8e
1 changed files with 1 additions and 0 deletions

View File

@ -23,6 +23,7 @@ var highlight = require('highlight.js');
var sanitizeHtmlParams = { var sanitizeHtmlParams = {
allowedTags: [ allowedTags: [
'font', // custom to matrix. deliberately no h1/h2 to stop people shouting. 'font', // custom to matrix. deliberately no h1/h2 to stop people shouting.
'del', // for markdown
'h3', 'h4', 'h5', 'h6', 'blockquote', 'p', 'a', 'ul', 'ol', 'h3', 'h4', 'h5', 'h6', 'blockquote', 'p', 'a', 'ul', 'ol',
'nl', 'li', 'b', 'i', 'strong', 'em', 'strike', 'code', 'hr', 'br', 'div', 'nl', 'li', 'b', 'i', 'strong', 'em', 'strike', 'code', 'hr', 'br', 'div',
'table', 'thead', 'caption', 'tbody', 'tr', 'th', 'td', 'pre' 'table', 'thead', 'caption', 'tbody', 'tr', 'th', 'td', 'pre'