mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 05:55:00 +08:00
support del tags for markdown
This commit is contained in:
parent
144feb6af9
commit
832da3aa8e
@ -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'
|
||||||
|
Loading…
Reference in New Issue
Block a user