Markdown Cheatsheet

What is Markdown?

Markdown is a text-to-HTML conversion tool for web writers. Markdown allows you to write using an easy-to-read, easy-to-write plain text format, then convert it to structurally valid XHTML (or HTML).

Markdown is a project designed by John Gruber and you can find much more about the entire project here.

Why a Markdown Cheatsheet?

Ghost, the new blogging platform I just switched to is based off of markdown and while it seems like it will be pretty simple and easy to pick I don't think it will hurt to pick up some practice writing this post and having something to quickly refer back to in the future.

* Update March 2018 - This is an old cheatsheet from my Ghost days. I am now using Wordpress again and have enabled the markdown editor. I am posting this over here for future reference.
* Update April 218 - Back to Ghost.

Cheatsheet

Headers

# H1
## H2
### H3
#### H4
##### H5
###### H6

Will render as:

H1

H2

H3

H4

H5
H6

Emphasis

Add italics with *asterisks* or _underscores_.

Add bold with **asterisks** or __underscores__.

Add both with **asterisks and _underscores_**.

Will render as:

Add italics with asterisks or underscores.

Add bold with asterisks or underscores.

Add both with asterisks and underscores.

Lists

Unordered

* Item 1
* Item 2
  * Item 2a
  * Item 2b

Will render as:

  • Item 1
  • Item 2
    • Item 2a
    • Item 2b

Ordered

1. Item 1
2. Item 2
3. Item 3
   * Item 3a
   * Item 3b

Will render as:

  1. Item 1
  2. Item 2
  3. Item 3
    • Item 3a
    • Item 3b
[bretfriedrich.com](http://www.bretfriedrich.com)

Will render as:

bretfriedrich.com

Images
![Alt text](/path/to/img.jpg)

![Alt text](/path/to/img.jpg "Optional title")
Blockquotes
> This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet,
> consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.
> Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.
> 
> Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse
> id sem consectetuer libero luctus adipiscing.

Will render as:

This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.

Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing.

I think this covers the basics I will use the most here at the beginning. I do intend for this post to grow as my needs grow.

Show Comments