diff --git a/app/assets/javascripts/defer/html-sanitizer-bundle.js b/app/assets/javascripts/defer/html-sanitizer-bundle.js index ff1973c62b8..60524c8d932 100644 --- a/app/assets/javascripts/defer/html-sanitizer-bundle.js +++ b/app/assets/javascripts/defer/html-sanitizer-bundle.js @@ -1054,7 +1054,6 @@ html4.ELEMENTS = { 'button': 0, 'canvas': 0, 'caption': 0, - 'center': 0, 'cite': 0, 'code': 0, 'col': 2, @@ -1178,7 +1177,6 @@ html4.ELEMENT_DOM_INTERFACES = { 'button': 'HTMLButtonElement', 'canvas': 'HTMLCanvasElement', 'caption': 'HTMLTableCaptionElement', - 'center': 'HTMLElement', 'cite': 'HTMLElement', 'code': 'HTMLElement', 'col': 'HTMLTableColElement', diff --git a/test/javascripts/lib/markdown_test.js b/test/javascripts/lib/markdown_test.js index a3e3d0499af..c4a1f0ae652 100644 --- a/test/javascripts/lib/markdown_test.js +++ b/test/javascripts/lib/markdown_test.js @@ -329,6 +329,7 @@ test("sanitize", function() { "

disney reddit

", "we can embed proper links"); + cooked("
hello
", "

hello

", "it does not allow centering"); cooked("
hello
\nafter", "

after

", "it does not allow tables"); cooked("
a\n
\n", "
a\n\n
\n\n
", "it does not double sanitize");