diff --git a/app/assets/javascripts/pretty-text/white-lister.js.es6 b/app/assets/javascripts/pretty-text/white-lister.js.es6 index 63bc3b742a8..1dc3885a6ae 100644 --- a/app/assets/javascripts/pretty-text/white-lister.js.es6 +++ b/app/assets/javascripts/pretty-text/white-lister.js.es6 @@ -107,6 +107,7 @@ whiteListFeature('default', [ 'div', 'div.title', 'div.quote-controls', + 'div[align]', 'i', 'b', 'ul', diff --git a/test/javascripts/lib/sanitizer-test.js.es6 b/test/javascripts/lib/sanitizer-test.js.es6 index 6e83c4d3733..9e74166d58c 100644 --- a/test/javascripts/lib/sanitizer-test.js.es6 +++ b/test/javascripts/lib/sanitizer-test.js.es6 @@ -48,6 +48,8 @@ test("sanitize", function() { cooked("Ctrl+C", "

Ctrl+C

"); cooked("it has been 1 day 0 days since our last test failure", "

it has been 1 day 0 days since our last test failure

"); + + cooked(`
hello
`, `
hello
`); }); test("ids on headings", () => {