2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-07 12:02:53 +08:00

FIX: remove empty lines but keep whitespace on first line in code blocks

This commit is contained in:
Régis Hanol 2015-03-17 17:27:16 +01:00
parent 8fcbea0c2c
commit aa41a9ce70
2 changed files with 9 additions and 6 deletions

View file

@ -529,6 +529,6 @@ test("censoring", function() {
test("code blocks/spans hoisting", function() {
cooked("```\n\n some code\n```",
"<p><pre><code class=\"lang-auto\">some code</code></pre></p>",
"<p><pre><code class=\"lang-auto\"> some code</code></pre></p>",
"it works when nesting standard markdown code blocks within a fenced code block");
});