diff --git a/test/javascripts/lib/markdown-test.js.es6 b/test/javascripts/lib/markdown-test.js.es6 index a07d3b077..868300c71 100644 --- a/test/javascripts/lib/markdown-test.js.es6 +++ b/test/javascripts/lib/markdown-test.js.es6 @@ -340,10 +340,12 @@ test("Code Blocks", function() { "
hello
world
line 1\n\nline 2\n\n\nline3
",
"it maintains new lines inside a code block with leading content.");
- cooked("```text\n<header>hello</header>
",
+ cooked("```ruby\n<header>hello</header>
",
"it escapes code in the code block");
+ cooked("```text\ntext\n```", "text
", "handles text without adding class");
+
cooked("```ruby\n# cool\n```",
"# cool
",
"it supports changing the language");