Markdown Syntax Guide

Reference


Headers

Use # symbols for headers. More # symbols mean smaller headers.

# Header one
## Header two
### Header three
#### Header four
##### Header five
###### Header six

Text Styling

Italic

_italic_

Result: italic

Bold

**bold**

Result: bold

Bold and Italic

**_bold and italic_**

Result: bold and italic


Paragraphs

Add two spaces at the end of a line to create a line break.

Without two spaces, a single line break in markdown will not create a visible line break. Two line breaks will create a paragraph break.


Block Quotes

Add > at the beginning of the line.

> "Her eyes had called him and his soul had leaped at the call."

Result:

“Her eyes had called him and his soul had leaped at the call.”


Code

Inline Code

Use single backticks for inline code.

Code Blocks

Wrap code with triple backticks:

```
print.out("abc")
```

Result:

print.out("abc")

You can also specify the language for syntax highlighting:

```python
print("Hello World")
```

Links

[Search for it.](www.google.com)

Result: Search for it.

Extract links as variables for reuse:

Do you want to [see something fun][a fun place]?

Well, do I have [the website for you][another fun place]!

[a fun place]: www.zombo.com
[another fun place]: www.stumbleupon.com

Images

Basic Image

![alt text](http://octodex.github.com/images/octdrey-catburn.jpg)

Reference Image

![the first father][First Father]
![The second first father][Second Father]

[First Father]: http://octodex.github.com/images/founding-father.jpg
[Second Father]: http://octodex.github.com/images/foundingfather_v2.png

Lists

Unordered List

Use * or -:

* Calculus
  * A professor
  * Has no hair
  * Often wears green
* Castafiore
  * An opera singer
  * Has white hair

Result:

  • Calculus
    • A professor
    • Has no hair
    • Often wears green
  • Castafiore
    • An opera singer
    • Has white hair

Ordered List

1. Cut the cheese
2. Slice the tomatoes
3. Rub the tomatoes in flour

Result:

  1. Cut the cheese
  2. Slice the tomatoes
  3. Rub the tomatoes in flour