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

Merge pull request #1671 from BoostIO/more-whitelist

Add table and details stuff to whitelist
This commit is contained in:
Junyoung Choi (Sai)
2018-03-13 22:02:06 +09:00
committed by GitHub

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'],