mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
FIX: fix dialect block ordering
This commit is contained in:
parent
c80ef9e3fa
commit
30dbb570e5
2 changed files with 13 additions and 0 deletions
|
@ -379,6 +379,14 @@ test("Code Blocks", function() {
|
|||
cooked("```\nline1\n```\n```\nline2\n\nline3\n```",
|
||||
"<p><pre><code class=\"lang-auto\">line1</code></pre></p>\n\n<p><pre><code class=\"lang-auto\">line2\n\nline3</code></pre></p>",
|
||||
"it does not consume next block's trailing newlines");
|
||||
|
||||
cooked(" <pre>test</pre>",
|
||||
"<pre><code><pre>test</pre></code></pre>",
|
||||
"it does not parse other block types in markdown code blocks");
|
||||
|
||||
cooked(" [quote]test[/quote]",
|
||||
"<pre><code>[quote]test[/quote]</code></pre>",
|
||||
"it does not parse other block types in markdown code blocks");
|
||||
});
|
||||
|
||||
test("sanitize", function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue