# Problem with posting of code fragment

**URL:** https://meta.discourse.org/t/problem-with-posting-of-code-fragment/64744
**Category:** Bug
**Tags:** markdown-it-review
**Created:** [2017年六月19日 10:28 UTC](https://meta.discourse.org/t/problem-with-posting-of-code-fragment/64744 "2017-06-19T10:28:36Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![evgeny-k](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/evgeny-k/32/78935_2.png) [@evgeny-k](https://meta.discourse.org/u/evgeny-k)
#### Post date: [2017年六月19日 10:28 UTC](https://meta.discourse.org/t/problem-with-posting-of-code-fragment/64744/1 "2017-06-19T10:28:36Z")

</div>

when I’m trying to post code like

 ![](https://global.discourse-cdn.com/meta/original/3X/4/b/4b699a1f154b4ab411ef15e07917067da1969342.png)

and put above code inside _```_ , it is shown as:

```plaintext
REGEDIT4

[HKEY_CURRENT_USER\Software\AAA]
"DDD"="D:\\folder1\\10\\bin\\myprog.exe"

```

i.e. `\1` is replaced with ```

the same with `<pre>` tag:

```
REGEDIT4

[HKEY_CURRENT_USER\Software\AAA]
"DDD"="D:\\folder1\\10\\bin\\myprog.exe"
```

blockquote also works incorrectly:

> REGEDIT4

> [HKEY\_CURRENT\_USER\Software\AAA]  
> “DDD”=“D:\folder1\10\bin\myprog.exe”

it this case, it replaces **\\1** with **```**

Q: how I can post above code as codefragment correctly?

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2017年六月19日 10:48 UTC](https://meta.discourse.org/t/problem-with-posting-of-code-fragment/64744/2 "2017-06-19T10:48:19Z")

</div>

Definitely an oddity, @sam is working on upgrading us to CommonMark now and this can be tested at that time.

---

<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: [2017年六月26日 12:54 UTC](https://meta.discourse.org/t/problem-with-posting-of-code-fragment/64744/3 "2017-06-26T12:54:33Z")

</div>

This seems to be working right now:

```plaintext
REGEDIT4

[HKEY_CURRENT_USER\Software\AAA]
"DDD"="D:\\folder1\\10\\bin\\myprog.exe"

```

I junked all our old custom code hoisting so these kind of issues are handled correctly by the engine.

---

<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: [2017年六月26日 12:54 UTC](https://meta.discourse.org/t/problem-with-posting-of-code-fragment/64744/4 "2017-06-26T12:54:37Z")

</div>


