My Web Adventures

A blog for hackers by a dinosaur hacker.

My Markdown Cheatsheet

Since this blog will also serve as my cheatsheets repository for everything I want to remember, here is my markdown cheatsheet:

  • Whenever an indentation is needed it is allways 1 tab or 4 spaces in markdown.
Headers:
1
2
3
4
5
6
# h1 Header 
## h2 Header 
### h3 Header 
#### h4 Header 
##### h5 Header 
###### h6 Header 

h1 Header

h2 Header

h3 Header

h4 Header

h5 Header
h6 Header

Lists:

1
2
3
4
5
6
7
8
9
10
11
* first item
* second item
* third item
or
- first item
- second item
- third item
or
+ first item
+ second item
+ third item
  • first item
  • second item
  • third item

Numbered Lists

1
2
3
1. first item
2. second item
3. third item
  1. first item
  2. second item
  3. third item

Mix Lists

1
2
3
4
5
6
1. first item
    + first item
    + second item
    + third item
2. second item
3. third item
  1. first item
    • first item
    • second item
    • third item
  2. second item
  3. third item

Emphasis/Strong

1
2
3
4
5
6
*emphasized*
_emphasized_
**strong**
__strong__
***strong emphasized***
___strong emphasized___

emphasized
strong
strong emphasized

Code Blocks:

1
This is a code block indented by 4 spaces
This is a code block indented by 4 spaces and the spaces removed

Blockquotes:

1
2
3
4
5
6
> 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.

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.

Markdown in Blockquotes:

1
2
3
4
5
6
7
8
> ## This is a header.
> 
> 1.   This is the first list item.
> 2.   This is the second list item.
> 
> Here's some example code:
> 
>     return shell_exec("echo $input | $markdown_script");

This is a header.

  1. This is the first list item.
  2. This is the second list item.

Here’s some example code:

return shell_exec("echo $input | $markdown_script");

Blockquote in blockquote:

1
2
3
4
5
> This is the first level of quoting.
>
> > This is nested blockquote.
>
> Back to the first level.

This is the first level of quoting.

This is nested blockquote.

Back to the first level.