Skip to content

Markdown - Cheat sheet

Headings

Input

# H1

## H2

### H3

#### H4

##### H5

###### H6

Header 1
==========

Header 2
-----------

Output

# H1

## H2

### H3

#### H4

##### H5

###### H6

# Header 1

## Header 2

Formatting

Normal = Normal

**Bold** = Bold __Bold__ = Bold

*Italic* = Italic _Italic_ = Italic

***Bold & Italics*** = Bold & Italics ___Bold & Italics___ = Bold & Italics

Subscript example: H~2~O = H2O

Superscript example: X^2^ = X2

==Highlight== = Highlight

~~Strikethrough~~ = Strikethrough

Emojis

:joy: = πŸ˜‚

:smile: = πŸ˜„

:cry: = 😒

:tent: = ⛺️

:heart: = ❀️

:icecream: = 🍦

:school: = 🏫

:car: = πŸš—

List

Ordered list

Input

1. Item 1
2. Item 2
   1. Item 2.1
      1. Item 2.1.a
      2. Item 2.1.b

Output

  1. Item 1
  2. Item 2
  3. Item 2.1
    1. Item 2.1.a
    2. Item 2.1.b

Unordered list

Input

- Item 1
- Item 2
  - second level 1
    - third level
  - second level 2
    - third level

Output

  • Item 1
  • Item 2
  • second level 1
    • third level
  • second level 2
    • third level

Task List:

Input

- [ ] Checkbox off
- [x] Checkbox on

Output

  • Checkbox off
  • Checkbox on

Miscellaneous

Input

term
: definition

Output

term
definition

Code

Inline Code

Input

`code`

Output

code

Block Code

JSON

Code block with JSON keyword

Input

```JSON
{
  "firstName": "John",
  "lastName": "Smith",
  "age": 25
}
```

Output

{
  "firstName": "John",
  "lastName": "Smith",
  "age": 25
}

Code block without JSON keyword

Input

```
{
  "firstName": "John",
  "lastName": "Smith",
  "age": 25
}
```

Output

{
  "firstName": "John",
  "lastName": "Smith",
  "age": 25
}

External reference

Input

[Google](https://www.google.com)

Output

Google

Input

[Google](https://www.google.com "Google Home Page")

Output

Google

Input

<https://google.com>

Output

https://google.com

Internal Reference

Input

[Linked to readme page](## "link")

Output

Linked to readme page

Images

External reference

Input

![water](https://media.istockphoto.com/photos/underwater-bubbles-picture-id925440650?k=20&m=925440650&s=612x612&w=0&h=OYU-poM2bI0xYJvb8qRAQ5UCc3qvnYt91KNv4nCOjgY=)

Output

water

Internal Reference

Input

![git-logo](../img/git-logo.png)

Output

git-logo

Table

Alignment

You can align text in the columns to the left, right, or center by adding a colon : to the left, right, or on both side of the hyphens within the header row.

Syntax Description Test Text
Text Left Aligned Text Center Aligned Text Right Aligned

Blockquote

Input

> This is
> a blockquote
>
> > Nested
> > Blockquote

Output

This is a blockquote

Nested Blockquote

Horizontal Rule

Input

Three or more

--- (Hyphens) or *** (Asterisks) or ___ (Underscores)

Output


Footnote

Input

Here's a sentence with a footnote. [^1]

[^1]: This is the footnote.

Output

Here's a sentence with a footnote. [^1]

[^1]: This is the footnote.

Markdown in HTML

Does not work very well. Use HTML tags.