Markdown cheatsheet

What is it

It's a plain text formatting syntax for web, usually for github or blogs like this one.

Why Markdown

  1. It's easy to learn and use
  2. Markdown has full HTML support
  3. Faster than rich text editors
  4. It's universal and timeproof
  5. It's possible to find free and online editors

How to use it

First you need a Markdown editor, which can be an online editor like Socrates.io or local like Visual Studio Code. Once you have your editor, create a new file with the file extension .md.

(Helloworld.md)

Now you have to use the following syntax to give your file the right format.

Headers

# H1
## H2
### H3
#### H4
##### H5
###### H6
  • Bullet list
* content
- content
+ content
  • content
  • content
  • content

Italic

*Italic*

bold emphasis

**bold emphasis**

Scratch

~~Scratch~~

Links

[Links](https://google.com)

Link with label

[ Link with label](https://www.google.com "Google")

Image

alt text

![alt text](https://upload.wikimedia.org/wikipedia/commons/e/ef/Emoji_u263a.svg "Emoji")

Box for code

``` Use three backticks on the line
before and the line after your code ```

Tables

0 1 2 3
A A1 A2 A3
B B2 B2 B6
C C1 C2 C3
| 0 | 1  | 2  | 3  |  
| - |:--:| --:|---:|
| A | A1 | A2 | A3 |
| B | B2 | B2 | B6 |
| C | C1 | C2 | C3 |

If you use :--: the column elements will be centred, Instead if you put --: the elements will be aligned to the right side.

That's it !