Problem with posting of code fragment

markdown-it-review

(Evgeny) #1

when I’m trying to post code like

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

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?


(Jeff Atwood) #2

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


(Sam Saffron) #3

This seems to be working right now:

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.


(Sam Saffron) #4