mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FIX: Markdown bug when a heading preceeded a code block.
This commit is contained in:
parent
25e5031fb1
commit
13bf8e1e46
2 changed files with 8 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue