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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user