mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 21:11:10 +08:00
FIX: Allow div align
This commit is contained in:
@ -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',
|
||||||
|
@ -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", () => {
|
||||||
|
Reference in New Issue
Block a user