mirror of
https://github.com/zadam/trilium.git
synced 2025-03-10 05:58:04 +08:00
fix inclusion of the image into the correct position in ENEX import, closes #3468
This commit is contained in:
parent
797ddf6205
commit
e40f1fd11a
1 changed files with 3 additions and 1 deletions
|
@ -28,7 +28,8 @@ function sanitize(dirtyHtml) {
|
|||
'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'blockquote', 'p', 'a', 'ul', 'ol',
|
||||
'li', 'b', 'i', 'strong', 'em', 'strike', 's', 'del', 'abbr', 'code', 'hr', 'br', 'div',
|
||||
'table', 'thead', 'caption', 'tbody', 'tr', 'th', 'td', 'pre', 'section', 'img',
|
||||
'figure', 'figcaption', 'span', 'label', 'input'
|
||||
'figure', 'figcaption', 'span', 'label', 'input',
|
||||
'en-media' // for ENEX import
|
||||
],
|
||||
allowedAttributes: {
|
||||
'a': [ 'href', 'class', 'data-note-path' ],
|
||||
|
@ -41,6 +42,7 @@ function sanitize(dirtyHtml) {
|
|||
'code': [ 'class' ],
|
||||
'ul': [ 'class' ],
|
||||
'table': [ 'class' ],
|
||||
'en-media': [ 'hash' ]
|
||||
},
|
||||
allowedSchemes: ['http', 'https', 'ftp', 'mailto', 'data', 'evernote'],
|
||||
transformTags,
|
||||
|
|
Loading…
Reference in a new issue