mirror of
https://github.com/discourse/discourse.git
synced 2025-06-10 07:38:03 +08:00
FIX: remove empty lines but keep whitespace on first line in code blocks
This commit is contained in:
@ -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");
|
||||
});
|
||||
|
Reference in New Issue
Block a user