Backticks not transferred when quoting only the code span


(Florian) #1

I’ve noticed that backticks that denote code spans are not part of the quoted text when creating a quote. This is relevant where special characters are used that are treated differently depending whether they’re used inside a code span or not.

Example

The original text

%APPDATA%\%TEST%\test.txt

when quoted, becomes

treating the first backslash as an escape for the following percent sign and resulting in a misquote, where the correct quote would be


(Jeff Atwood) #2

No repro, I just quoted and it looks fine to me.


(Florian) #3

You need to quote the code span only for reproducing the issue.


(Jeff Atwood) #4

That’s a very … specific … scenario. I edited your topic title to make it more clear.


(Florian) #5

It happens quite often in my community, resulting in follow-up posts where users state that the “” was somehow omitted (that’s actually "\") which then results in even more confusion.

And regarding the original topic title: it also happens when quoting from code spans, meaning that you don’t need to quote the complete code span. It happens also with parts of those.