mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FIX: Quoting within code blocks.
This commit is contained in:
parent
1204eb62c3
commit
c99cf64d70
5 changed files with 73 additions and 62 deletions
|
@ -247,6 +247,12 @@ test("Code Blocks", function() {
|
|||
cooked("```ruby\nhello `eviltrout`\n```",
|
||||
"<p><pre><code class=\"ruby\">hello `eviltrout`</code></pre></p>",
|
||||
"it allows code with backticks in it");
|
||||
|
||||
|
||||
cooked("```[quote=\"sam, post:1, topic:9441, full:true\"]This is `<not>` a bug.[/quote]```",
|
||||
"<p><pre><code class=\"lang-auto\">[quote="sam, post:1, topic:9441, full:true"]This is `<not>` a bug.[/quote]</code></pre></p>",
|
||||
"it allows code with backticks in it");
|
||||
|
||||
});
|
||||
|
||||
test("SanitizeHTML", function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue