FIX: Markdown bug when a heading preceeded a code block.

This commit is contained in:
Robin Ward
2014-12-29 15:59:23 -05:00
parent 25e5031fb1
commit 13bf8e1e46
2 changed files with 8 additions and 1 deletions

View File

@ -398,6 +398,8 @@ test("Code Blocks", function() {
cooked(" [quote]test[/quote]",
"<pre><code>[quote]test[/quote]</code></pre>",
"it does not parse other block types in markdown code blocks");
cooked("## a\nb\n```\nc\n```", "<h2>a</h2>\n\n<p><pre><code class=\"lang-auto\">c</code></pre></p>", "it handles headings with code blocks after them.");
});
test("sanitize", function() {