Block Syntax

Paragraphs, headings, lists, and other block elements

1 min read 186 words

Block elements form the structure of a Markdown document.

Paragraphs

Separate paragraphs with blank lines:

First paragraph.

Second paragraph.

Headings

ATX Headings

# Heading 1
## Heading 2
### Heading 3
#### Heading 4
##### Heading 5
###### Heading 6

Setext Headings

Heading 1
=========

Heading 2
---------

Lists

Unordered Lists

- Item one
- Item two
- Item three

Or with*or+:

* Item one
+ Item one

Ordered Lists

1. First item
2. Second item
3. Third item

Numbers don't need to be sequential:

1. First item
1. Second item
1. Third item

Nested Lists

- Item one
  - Nested item
  - Another nested
- Item two

Blockquotes

> This is a blockquote.
>
> It can span multiple paragraphs.

Nested blockquotes:

> First level
>> Second level
>>> Third level

Horizontal Rules

---
***
___

Code Blocks

See Code for fenced and indented code blocks.