mirror of
https://github.com/discourse/discourse.git
synced 2025-02-07 03:48:23 +00:00
FIX: disable whitelist temporarily
more complete fix to follow
This commit is contained in:
parent
21bc20169e
commit
9ffcbfca98
@ -237,7 +237,15 @@ Discourse.Markdown.whiteListTag('a', 'data-bbcode');
|
||||
|
||||
Discourse.Markdown.whiteListTag('div', 'class', 'title');
|
||||
Discourse.Markdown.whiteListTag('div', 'class', 'quote-controls');
|
||||
Discourse.Markdown.whiteListTag('code', 'class', '*');
|
||||
|
||||
// FIXME: explicitly whitelist classes we need allowed through for
|
||||
// syntax highlighting, grab from highlight.js
|
||||
Discourse.Markdown.whiteListTag('code', 'class', 'text');
|
||||
Discourse.Markdown.whiteListTag('code', 'class', 'ruby');
|
||||
Discourse.Markdown.whiteListTag('code', 'class', 'json');
|
||||
Discourse.Markdown.whiteListTag('code', 'class', 'lang-auto');
|
||||
// Discourse.Markdown.whiteListTag('code', 'class', '*');
|
||||
|
||||
Discourse.Markdown.whiteListTag('span', 'class', 'mention');
|
||||
Discourse.Markdown.whiteListTag('span', 'class', 'spoiler');
|
||||
Discourse.Markdown.whiteListTag('div', 'class', 'spoiler');
|
||||
|
Loading…
x
Reference in New Issue
Block a user