Markdown Cheat Sheet

Contents

Header

Header1

# Header1

Header3

### Header3
Header6
###### Header6

Link

Normal Link

text link

[text link](http://example.com "Optional  Tilte")

image

![image](http://daringfireball.net/favicon.ico "Optional Title")

Automatic Link

http://example.com

user.name@example.com

<http://example.com>;
user.name@example.com

Valid URL can also be automatic link in github-flavored-markdown

Reference-style Link

I get 10 times more traffic from Google than from Yahoo or MSN.

I get 10 times more traffic from [Google] [1] than from [Yahoo] [2] or [MSN] [3].
[1]: http://google.com/        "Google"
[2]: http://search.yahoo.com/  "Yahoo Search"
[3]: http://search.msn.com/    "MSN Search"

List

* or - or + are valid leading char.
8 spaces or two tabs needed when code after list

  1. item0
  2. item1
  3. item2

    1. item0
    2. item1
    3. item2
    

Font

Emphasis/Italic

*Emphasis/Italic*

Strong/Bold

**Strong/Bold**

* or _ is ok.

Blockquote

This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.

This is nested blockquote.

Single line or multi lines.

> This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.
> > This is nested blockquote.

Code

Basic Code

js code

4 leading whitespace.

    js code

Code highlight

var hi = 'hi';  
console.log(hi);

Supported in github-flavored-markdown

<div class="highlight"><pre lang="javascript">    var hi = 'hi';
console.log(hi);
</pre></div>

Horizontal Rule


* * *

***

*****

* or - is ok.

Escape