Merge pull request #273 from polarblau/code_block_ascii_bug

Added test for ASCII characters in code blocks created with back ticks.
This commit is contained in:
Corey Donohoe
2012-04-10 15:26:31 -07:00
+8
View File
@@ -422,6 +422,14 @@ context "Markup" do
compare(content, output)
end
test "code blocks with ascii characters" do
content = "a\n\n```\n├─foo\n```\n\nb"
output = "<p>a</p>\n\n<div class=\"highlight\"><pre>" +
"<span class=\"n\">├─foo</span>" +
"\n</pre>\n</div>\n\n<p>b</p>"
compare(content, output)
end
test "code with wiki links" do
content = <<-END
booya