Documentation/content/markdown/using-lists.md

79 lines
1.1 KiB
Markdown
Raw Permalink Normal View History

---
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-07-22 07:27:57 +00:00
## Unordered lists
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 `*`.
For example:
```
- This
- is
- a
- simple
- bullet
- point
- list
```
2022-07-22 07:27:57 +00:00
This gets rendered as:
- 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
```
Gets rendered as:
1. This
2. is
3. a
4. numbered
2022-07-22 07:27:57 +00:00
5. list
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):
```
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.)