Skip to content

Escaping backticks in markdown

We can escape a backtick in markdown by adding an empty space before and after the backtick, then enclose them with a group of higher number of backticks.

  • To escape one backtick:

    • Code:
      `` ` ``
    • Result: `
  • To escape two backticks:

    • Code:
      ` `` `
    • Result: ``
  • To escape backticks with line breaks:

    • Code:

      ````
      ```js
       
      ```
      ````
    • Result:

      ```js
       
      ```