add test for fix in 9061c26e52

This commit is contained in:
Régis Hanol 2015-03-12 16:20:14 +01:00
parent 9061c26e52
commit 9395bbbbea
1 changed files with 6 additions and 0 deletions

View File

@ -526,3 +526,9 @@ test("censoring", function() {
"<p>you are a &#9632;&#9632;&#9632;&#9632;&#9632;&#9632;&#9632;! I love cheesewhiz. &#9632;&#9632;&#9632;&#9632;.</p>",
"it censors words even if previous partial matches exist.");
});
test("code blocks/spans hoisting", function() {
cooked("```\n\n some code\n```",
"<p><pre><code class=\"lang-auto\">some code</code></pre></p>",
"it works when nesting standard markdown code blocks within a fenced code block");
});