mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Allow backticks in code blocks
This commit is contained in:
@@ -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 `eviltrout`</code></pre></p>",
|
||||
"it allows code with backticks in it");
|
||||
});
|
||||
|
||||
test("SanitizeHTML", function() {
|
||||
|
||||
Reference in New Issue
Block a user