Markdown Cheat Sheet

This is a quick reference cheat sheet to the Markdown syntax.

Markdown Quick Reference

Backslash escapes

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

Images

![GitHub Logo](/images/logo.png)
![Alt Text](url)
[![GitHub Logo](/images/logo.png)](https://github.com/)
[![Alt Text](image\_url)](link\_url)

#Reference style

![alt text][logo]
[logo]: /images/logo.png "Logo Title"

Tables

| Left column | Center column | Right column |
|:------------|:-------------:|-------------:|
| Cell 1      |   Centered    |        $1600 |
| Cell 2      |    Cell 3     |          $12 |

Simple style

Left column | Center column | Right column
:----------:|:-------------:|:-----------:
   Cell 1   |   Centered    |    $1600
   Cell 2   |    Cell 3     |     $12

A markdown table generator: tableconvert.com

Code

```javascript
console.log("This is a block code")
```
~~~css
.button { border: none; }
~~~
 4 space indent makes a code block

#inline code

`Inline code` has back-ticks around it

Horizontal line

Hyphens

---

Asterisks

\*\*\*

Underscores

\_\_\_

Emphasis

\*italic\*
\_italic\_
\*\*bold\*\*
\_\_bold\_\_
`inline code`
~~struck out~~

Links

[link](http://google.com)
[link][google]
[google]: http://google.com
<http://google.com>

Ordered List

1. Item 1
2. Item 2
 a. item 3a
 b. item 3b

Unordered List

\* Item 1
\* Item 2
 \* item 3a
 \* item 3b

or

- Item 1
- Item 2

or

+ Item 1
+ Item 2

or

- [ ] Checkbox off
- [x] Checkbox on

Blockquotes

> This is
> a blockquote
>
> > Nested
> > Blockquote

Headers (setext style)

Header 1
========
Header 2
--------

Headers (atx style)

# h1
## h2
### h3
#### h4
##### h5
###### h6