FIX: Quoting within code blocks.

This commit is contained in:
Robin Ward
2013-08-29 14:42:31 -04:00
parent 1204eb62c3
commit c99cf64d70
5 changed files with 73 additions and 62 deletions

View File

@ -247,6 +247,12 @@ test("Code Blocks", function() {
cooked("```ruby\nhello `eviltrout`\n```",
"<p><pre><code class=\"ruby\">hello &#x60;eviltrout&#x60;</code></pre></p>",
"it allows code with backticks in it");
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>",
"it allows code with backticks in it");
});
test("SanitizeHTML", function() {