# How do I escape a backtick in Markdown?

How do I escape a back tick within a code block?

This is probably a duplicate, since I'm sure it's a common concern, but I can't find a question that addresses this specifically.

How do I write List'1 with the "1" character still in the code-text format?

-
–  ChrisF Mar 11 '11 at 14:29
with a \ Example:  –  Johannes Kuhn Oct 7 '13 at 9:25
Is there one chasing you? –  Rosinante Oct 7 '13 at 15:36

Use four spaces before your code?

List1


Or use double backticks as in List1 .

It looks like this: List1


See http://daringfireball.net/projects/markdown/syntax, linked to from the formatting question box.

Note: Extra spacing will be necessary if you want to have a backtick at the end of your code, e.g., foo . This will keep it from consuming the first 2 closing backticks instead of the final two closing backticks.

-
I had to click edit on your post to see what you meant, because I think there is a typo. It appears that you need to delete the backtick after the 1, because as written the formatting is not correct. If you do that I will accept you. –  smartcaveman Mar 11 '11 at 14:24
@smartcaveman. Sorry and fixed. I misunderstand you as wanting List'1' for some reason. –  Brian Mar 11 '11 at 14:30
The double backtick technique doesn't seem to work on GitHub. –  Max Howell Jul 30 '12 at 12:43
@Max: It does now. –  Allon Guralnek Aug 19 '12 at 13:28
How do you have two consecutive backticks in inline code? –  asmeurer Jun 16 '13 at 16:44
@asmeurer: Wrap your inline code with triple backticks. !! For triple or higher backticks, you can wrap your inline code with double backticks, rather than quadruple backticks (unless you need both triple and double backticks at different places). !! vs !!! –  Brian Jun 16 '13 at 19:09
As mentioned in the other answers to the question, you can simply escape backticks with a backslash \ for inline formatting. –  Cupcake Jun 5 '14 at 14:55

For github, like for displaying a mysql table_name, in regular text use \ (backslash backtick)

For showing backticks inside inline codeblocks table_name use double backticks with
extra spaces  table_name  around the inner single backticks.

To show the previous example explanation in an inline codeblock:  table_name ,
surround the whole in three backticks with extra spaces,
e.g.   table_name  

-
Thanks for pointing out that extra spaces are required! –  CoDEmanX Aug 28 '14 at 20:40
And that continues for any number of backticks. If you are writing about how to use Prism syntax highlighting and want to display three backticks, you need to "escape" them with four backticks and a space. (i.e.  language_javascript ) –  Jedidja Mar 3 at 18:53

you can use :

List1


when inline it will display List1

### Markdown provides backslash escapes for the following characters:

\   backslash
backtick
*   asterisk
_   underscore
{}  curly braces
[]  square brackets
()  parentheses
#   hash mark
+   plus sign
-   minus sign (hyphen)
.   dot
!   exclamation mark


for example, this:

## \\ \ \* \_ \{ \}   \# \+ \- \. \!


returns:

## \  * _ { } [ ] ( ) # + - . !

not codeblock, *not italics*, **not bold**, [not link](http://www.google.com)

# not h1

## not h2

### not h3

+ not ul

- not ul

-