2022-04-23 19:18:08 +00:00
|
|
|
---
|
|
|
|
eleventyNavigation:
|
|
|
|
key: UsingLists
|
|
|
|
title: Using Lists
|
|
|
|
parent: Markdown
|
|
|
|
order: 60
|
|
|
|
---
|
|
|
|
|
2022-07-22 07:27:57 +00:00
|
|
|
You can use lists in your Markdown files.
|
2022-04-23 19:18:08 +00:00
|
|
|
|
2022-07-22 07:27:57 +00:00
|
|
|
## Unordered lists
|
2022-04-23 19:18:08 +00:00
|
|
|
|
2022-07-22 07:27:57 +00:00
|
|
|
To use an unordered list (bullet points), simply begin your list items with a dash `-` or a star `*`.
|
2022-04-23 19:18:08 +00:00
|
|
|
|
|
|
|
For example:
|
|
|
|
|
|
|
|
```
|
|
|
|
- This
|
|
|
|
- is
|
|
|
|
- a
|
|
|
|
- simple
|
|
|
|
- bullet
|
|
|
|
- point
|
|
|
|
- list
|
|
|
|
```
|
|
|
|
|
2022-07-22 07:27:57 +00:00
|
|
|
This gets rendered as:
|
2022-04-23 19:18:08 +00:00
|
|
|
|
|
|
|
- This
|
|
|
|
- is
|
|
|
|
- a
|
|
|
|
- simple
|
|
|
|
- bullet
|
|
|
|
- point
|
|
|
|
- list
|
|
|
|
|
|
|
|
## Numbered lists
|
|
|
|
|
|
|
|
To use a numbered list, simply begin your list items with a number.
|
|
|
|
|
|
|
|
```shell
|
|
|
|
1. This
|
|
|
|
2. is
|
|
|
|
3. a
|
|
|
|
4. numbered
|
2022-07-22 07:27:57 +00:00
|
|
|
5. list
|
2022-04-23 19:18:08 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
Gets rendered as:
|
|
|
|
|
|
|
|
1. This
|
|
|
|
2. is
|
|
|
|
3. a
|
|
|
|
4. numbered
|
2022-07-22 07:27:57 +00:00
|
|
|
5. list
|
2022-04-23 19:18:08 +00:00
|
|
|
|
2022-07-22 07:27:57 +00:00
|
|
|
Note that the numbers do not have to be in the correct order (even though it is easier to read in the non-rendered form):
|
2022-04-23 19:18:08 +00:00
|
|
|
|
|
|
|
```
|
|
|
|
1. This
|
|
|
|
1. is
|
|
|
|
1. also
|
|
|
|
1. a
|
|
|
|
1. numbered
|
|
|
|
1. list
|
|
|
|
```
|
|
|
|
|
|
|
|
will also render to a correctly numbered list:
|
|
|
|
|
|
|
|
1. This
|
|
|
|
1. is
|
|
|
|
1. also
|
|
|
|
1. a
|
|
|
|
1. numbered
|
|
|
|
1. list
|
|
|
|
|
2022-07-22 07:27:57 +00:00
|
|
|
Some editors even autocorrect this to a correctly numbered list. (If the example above does no longer start with `1.`
|
|
|
|
on each line, please feel free to reintroduce the mistake for illustration purposes.)
|