FIX: Allow backticks in code blocks

This commit is contained in:
Robin Ward
2013-08-26 16:53:10 -04:00
parent 1c3c468675
commit 6c3cb9023c
2 changed files with 12 additions and 6 deletions

View File

@@ -231,6 +231,10 @@ test("Code Blocks", function() {
cooked("```ruby\ndef self.parse(text)\n\n text\nend\n```",
"<p><pre><code class=\"ruby\">def self.parse(text)\n\n text\nend</code></pre></p>",
"it allows leading spaces on lines in a code block.");
cooked("```ruby\nhello `eviltrout`\n```",
"<p><pre><code class=\"ruby\">hello &#x60;eviltrout&#x60;</code></pre></p>",
"it allows code with backticks in it");
});
test("SanitizeHTML", function() {