1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +00:00

Add table and details stuff to whitelist

This commit is contained in:
Junyoung Choi
2018-03-13 22:00:07 +09:00
parent f53c182cfb
commit 571d159a1f

View File

@@ -55,7 +55,7 @@ class Markdown {
// Sanitize use rinput before other plugins
this.md.use(sanitize, {
allowedTags: ['img', 'iframe', 'input'],
allowedTags: ['img', 'iframe', 'input', 'details', 'summary', 'table', 'th', 'tr', 'td', 'thead', 'tfoot', 'tbody'],
allowedAttributes: {
'*': ['alt', 'style'],
'img': ['src', 'width', 'height'],