Markdown Cheatsheet

November 10th, 2016 Duco Winterwerp markdown cheatsheet

Introduction

Markdown is a very simple and readable markup language. Markdown converts to HTML and as such is a perfect language for blogs, readmes, forums etc. It was made by John Gruber in 2004 using Perl, but hasn't been updated ever since. It still got real momentum after and lots of implementations exists right now. This page contains examples on how to use Markdown, which editors you can use and several implementations.

Examples

Paragraphs

If you want to use paragraphs, just separate the lines by 2 (or multiple) new lines.

Headings

# Heading 1
## Heading 2
...
###### Heading 6

Unordered list

- Item 1
- Item 2
 - Item 3

* Item 1
* Item 2
 * Item 3

Ordered list

1. Item 1
1. Item 2
 1. Item 3

1. Item 1
2. Item 3
 3. Item 3
  1. Item 1
  2. Item 2
    1. Item 3
  1. Item 1
  2. Item 3
    1. Item 3

Horizontal lines

---
___
***

Italic text

*This text is italic*
_This text is italic_

Bold text

**This text is bold**
__This text is bold__

Bold and italic text

***This text is bold and italic***
___This text is bold and italic___
[Link](https://google.com)
[Reference link][reference]

[reference]: https://google.com
<https://google.com>

Blockquotes

> Blockquote
> 
> > Nested blockquote

Images

![Alternative text](https://google.com/logo.png)

Code blocks

Inline `<strong>Code</strong>` block
```
<html>
<head>
</head>
<body>
Multi line code block
</body>
</html>
```
    <html>
    <head>
    </head>
    <body>
    Multi line code block, indented by 4 spaces
    </body>
    </html>

Escaping

Use '\' to escape typical Markdown characters.

\# Not heading 1

Markdown standards

Markdown editors

Markdown libraries