fix importing image captions, closes #2113

(cherry picked from commit e050e380b9e44d2e282074d3ca7ca19b33761be4)
This commit is contained in:
zadam 2021-08-20 21:40:28 +02:00
parent 19a6d89d4f
commit 3448eba7b9

View File

@ -8,7 +8,7 @@ function sanitize(dirtyHtml) {
'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'blockquote', 'p', 'a', 'ul', 'ol', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'blockquote', 'p', 'a', 'ul', 'ol',
'li', 'b', 'i', 'strong', 'em', 'strike', 'abbr', 'code', 'hr', 'br', 'div', 'li', 'b', 'i', 'strong', 'em', 'strike', 'abbr', 'code', 'hr', 'br', 'div',
'table', 'thead', 'caption', 'tbody', 'tr', 'th', 'td', 'pre', 'section', 'img', 'table', 'thead', 'caption', 'tbody', 'tr', 'th', 'td', 'pre', 'section', 'img',
'figure', 'span', 'label', 'input' 'figure', 'figcaption', 'span', 'label', 'input'
], ],
allowedAttributes: { allowedAttributes: {
'a': [ 'href', 'class', 'data-note-path' ], 'a': [ 'href', 'class', 'data-note-path' ],