Escaping Characters in Markdown

Sometimes you might want to display a character that is normally used as Markdown syntax. To do this, you can "escape" the character using a backslash (\).

How it Works

Markdown uses many characters (like *, #, [, etc.) to trigger formatting. If you want to print one of these characters literally, you place a backslash immediately before it.

Characters You Can Escape

The following characters can be escaped with a backslash to be treated as literal text:

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

Example with Brackets

Escaping is particularly useful when you want to use symbols that are part of more complex syntax, like link brackets.

Tips for Escaping