mirror of
https://github.com/discourse/discourse.git
synced 2025-06-15 12:22:39 +08:00
FIX: hoisting issue with regexp replacement patterns
This commit is contained in:
@ -531,4 +531,8 @@ 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");
|
||||
|
||||
cooked("`$&`",
|
||||
"<p><code>$&</code></p>",
|
||||
"it works even when hoisting special replacement patterns");
|
||||
});
|
||||
|
Reference in New Issue
Block a user