DEV Community

Via Scientiae
Via Scientiae

Posted on Edited on

Markdown Cheat Sheet 🧩

Basic Syntax 1:

Syntax Output
# Heading 1 # Heading 1
## Heading 2 ## Heading 2
### Heading 3 ### Heading 3
#### Heading 4 #### Heading 4
##### Heading 5 ##### Heading 5
###### Heading 6 ###### Heading 6
standard text or paragraph standard text or paragraph
*italic text* or _italic text_ italic text
**bold text** or __bold text__ bold text
~~strikethrough text~~ strikethrough text
`code` code
[Scrimba](https://scrimba.com/ "Learn to code with Scrimba") Scrimba
![Markdown logo](https://upload.wikimedia.org/wikipedia/commons/d/d9/Markdown.png "Markdown logo in svg") Markdown logo svg
<user@example.com> user@example.com
https://www.example.com https://www.example.com

Basic Syntax 2:

1. Paragraphs

Syntax:

This is paragraph one.

There is a new line between the paragraph above and the paragraph below.

This is paragraph three.
Enter fullscreen mode Exit fullscreen mode

Output:

This is paragraph one.

There is a new line between the paragraph above and the paragraph below.

This is paragraph three.

2. Line break

Syntax:

---
Enter fullscreen mode Exit fullscreen mode

Output:


2. Blockquote

Syntax:

> Blockquote

Output:

Blockquote

3. Code Block:

Syntax:

```markdown
code block
``` 
Enter fullscreen mode Exit fullscreen mode

Output:

codeblock
Enter fullscreen mode Exit fullscreen mode

4. Ordered list:

Syntax:

1. Item 1
2. item 2
3. Item 3 
Enter fullscreen mode Exit fullscreen mode

Output:

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

5. Unordered list:

Syntax:

* Item 1
* Item 2
* Item 3
Enter fullscreen mode Exit fullscreen mode

or

- Item 1
- Item 2
- Item 3
Enter fullscreen mode Exit fullscreen mode

Output:

  • Item 1
  • Item 2
  • Item 3

5. Indented and mixed list:

Syntax:

1. Item 1
    * Subitem 1
    * Subitem 2
        1. Sub-subitem 1
        2. Sub-subitem 2
2. Item 2
    1. Subitem 3
        * Sub-subitem 3
        * Sub-subtitem 4
Enter fullscreen mode Exit fullscreen mode

Output:

  1. Item 1
    • Subitem 1
    • Subitem 2
      1. Sub-subitem 1
      2. Sub-subitem 2
  2. Item 2
    1. Subitem 3
      • Sub-subitem 3
      • Sub-subtitem 4

6. Table

Syntax:

| Column 1 | Column 2 | Column 3 |
| :---- | :----: | ----: |
| Left aligned | Center Aligned | Right Aligned |
| Col 1 Row 1 | Col 2 Row 1 | Col 3 Row 1 |
| Col 1 Row 2 | Col 2 Row 2 | Col 3 Row 2 |
| Col 1 Row 3 | Col 2 Row 3 | Col 3 Row 3 |
Enter fullscreen mode Exit fullscreen mode

Output:

Column 1 Column 2 Column 3
Left aligned Center Aligned Right Aligned
Col 1 Row 1 Col 2 Row 1 Col 3 Row 1
Col 1 Row 2 Col 2 Row 2 Col 3 Row 2
Col 1 Row 3 Col 2 Row 3 Col 3 Row 3

7. Task list

Syntax:

- [x] Task 1
- [ ] Task 2
- [ ] Task 3
Enter fullscreen mode Exit fullscreen mode

Output:

  • [x] Task 1
  • [ ] Task 2
  • [ ] Task 3

Further learning:

  1. Learn Markdown course at Scrimba
  2. Markdown Guide: Basic Syntax
  3. Markdown Guide: Extended Syntax

Top comments (0)