whitelist acceptable syntax highlighting classes

This commit is contained in:
Robin Ward
2013-10-21 13:10:19 -04:00
parent 4bf064c3c6
commit 7a5c3bfcd8
2 changed files with 18 additions and 1 deletions
@@ -300,6 +300,9 @@ test("Code Blocks", function() {
"<p><pre><code class=\"ruby\">hello &#x60;eviltrout&#x60;</code></pre></p>",
"it allows code with backticks in it");
cooked("```eviltrout\nhello\n```",
"<p><pre><code class=\"lang-auto\">hello</code></pre></p>",
"it doesn't not whitelist all classes");
cooked("```[quote=\"sam, post:1, topic:9441, full:true\"]This is `<not>` a bug.[/quote]```",
"<p><pre><code class=\"lang-auto\">[quote=&quot;sam, post:1, topic:9441, full:true&quot;]This is &#x60;&lt;not&gt;&#x60; a bug.[/quote]</code></pre></p>",