FIX: New lines in code blocks were somewhat unpredictable

This commit is contained in:
Robin Ward
2013-08-22 13:46:51 -04:00
parent 0f27232711
commit 5e50c4624f
2 changed files with 12 additions and 3 deletions

View File

@ -168,6 +168,10 @@ test("Oneboxing", function() {
test("Code Blocks", function() {
cooked("```\na\nb\nc\n\nd\n```",
"<p><pre><code class=\"lang-auto\">a\nb\nc\n\nd</code></pre></p>",
"it treats new lines properly");
cooked("```\ntest\n```",
"<p><pre><code class=\"lang-auto\">test</code></pre></p>",
"it supports basic code blocks");