FIX: <pre> blocks were adding too many new lines.

This commit is contained in:
Robin Ward
2014-06-23 15:21:07 -04:00
parent 68d323faaf
commit ff55a30dd7
3 changed files with 22 additions and 5 deletions

View File

@ -282,6 +282,10 @@ test("links with full urls", function() {
test("Code Blocks", function() {
cooked("<pre>\nhello\n</pre>\n",
"<p><pre>\nhello</pre></p>",
"pre blocks don't include extra lines");
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");