FIX: Allow div align

This commit is contained in:
Robin Ward
2016-07-20 12:39:12 -04:00
parent e7e6840803
commit 7dd4470075
2 changed files with 3 additions and 0 deletions

View File

@ -107,6 +107,7 @@ whiteListFeature('default', [
'div', 'div',
'div.title', 'div.title',
'div.quote-controls', 'div.quote-controls',
'div[align]',
'i', 'i',
'b', 'b',
'ul', 'ul',

View File

@ -48,6 +48,8 @@ test("sanitize", function() {
cooked("<kbd>Ctrl</kbd>+<kbd>C</kbd>", "<p><kbd>Ctrl</kbd>+<kbd>C</kbd></p>"); cooked("<kbd>Ctrl</kbd>+<kbd>C</kbd>", "<p><kbd>Ctrl</kbd>+<kbd>C</kbd></p>");
cooked("it has been <strike>1 day</strike> 0 days since our last test failure", "<p>it has been <strike>1 day</strike> 0 days since our last test failure</p>"); cooked("it has been <strike>1 day</strike> 0 days since our last test failure", "<p>it has been <strike>1 day</strike> 0 days since our last test failure</p>");
cooked(`<div align="center">hello</div>`, `<div align="center">hello</div>`);
}); });
test("ids on headings", () => { test("ids on headings", () => {