tweak code markup parser so that blocks without a language are just output in pre tags

This commit is contained in:
rick
2011-01-11 00:47:46 -08:00
parent 45765eb161
commit c5e4935e85
2 changed files with 8 additions and 5 deletions
+2 -2
View File
@@ -394,8 +394,8 @@ context "Markup" do
end
test "code block with no lang" do
content = "a\n\n```\n\tls -al;\n\tbooya\n```\n\nb"
output = "<p>a</p>\n\n\n\n<p>b</p>"
content = "a\n\n```\n\tls -al;\n\t<booya>\n```\n\nb"
output = "<p>a</p>\n\n<pre><code>ls -al;\n&lt;booya&gt;</code></pre>\n\n<p>b</p>"
compare(content, output)
end