# \[quote\] loses backslashes on this super edge case

**URL:** https://meta.discourse.org/t/quote-loses-backslashes-on-this-super-edge-case/61253
**Category:** Bug
**Tags:** markdown-it-review
**Created:** [April 19, 2017, 12:49pm UTC](https://meta.discourse.org/t/quote-loses-backslashes-on-this-super-edge-case/61253 "2017-04-19T12:49:21Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Sujan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sujan/32/70979_2.png) [@Sujan](https://meta.discourse.org/u/Sujan)
#### Post date: [April 19, 2017, 12:49pm UTC](https://meta.discourse.org/t/quote-loses-backslashes-on-this-super-edge-case/61253/1 "2017-04-19T12:49:21Z")

</div>

This first post is only to setup the reproduction of the bug in the second post that will follow:

When you use `<code>\```` you can output the three ticks required to do a code fence.

---

<div class="post-metadata">

### Author: ![Sujan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sujan/32/70979_2.png) [@Sujan](https://meta.discourse.org/u/Sujan)
#### Post date: [April 19, 2017, 12:51pm UTC](https://meta.discourse.org/t/quote-loses-backslashes-on-this-super-edge-case/61253/2 "2017-04-19T12:51:21Z")

</div>

> [@Sujan](#):
>
> When you use \<code\>```\</code\> you can output the three ticks required to do a code fence.

And now the backslashes used in my original post are gone.

---

<div class="post-metadata">

### Author: ![clapmyhands](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/clapmyhands/32/69810_2.png) [@clapmyhands](https://meta.discourse.org/u/clapmyhands)
#### Post date: [April 19, 2017, 12:58pm UTC](https://meta.discourse.org/t/quote-loses-backslashes-on-this-super-edge-case/61253/3 "2017-04-19T12:58:40Z")

</div>

I’m pretty sure this is because quote don’t escape the chars inside it.

if it’s gonna be a #pr-welcome I’ll work on this as I’m also trying to work on another request regarding quote.

> [@Remove quote of the solution if solved quote length is set to zero](https://meta.discourse.org/t/remove-quote-of-the-solution-if-solved-quote-length-is-set-to-zero/61106):
>
> I would prefer to only display a link to the solved post instead of embedding the whole content. Therefore, setting the option “solved quote length” to 0 (zero) should disable the embedded quote and only display the “Solved by xyz in post 23”. I thought the corresponding line is [this one](https://github.com/discourse/discourse-solved/blob/master/plugin.rb#L239), tried to implement it on my own but but the box disappeared completely.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [June 26, 2017, 1:24pm UTC](https://meta.discourse.org/t/quote-loses-backslashes-on-this-super-edge-case/61253/4 "2017-06-26T13:24:30Z")

</div>

```plaintext
 `<code>\`\`\`</code>` 

```

Now renders, correctly as `<code>\```` , it is subtle but see: [John MacFarlane - babelmark 2](http://johnmacfarlane.net/babelmark2/?text=%60%3Ccode%3E%5C%60%5C%60%5C%60%3C%2Fcode%3E%60)

To escape you would

```plaintext
``<code>\`\`\`<\code>``

```

Which renders correctly as: `<code>\`\`\`<\code>`

And is quotable via:

> `<code>\`\`\`<\code>`

Or

> [@](#):
>
> `<code>\`\`\`<\code>`

Markup:

```plaintext

> ``<code>\`\`\`<\code>`` 

Or 

[quote]
 ``<code>\`\`\`<\code>`` 
[/quote]

```

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [June 26, 2017, 1:25pm UTC](https://meta.discourse.org/t/quote-loses-backslashes-on-this-super-edge-case/61253/5 "2017-06-26T13:25:19Z")

</div>


