Advertisement
❮ Previous: Markdown Tables Next: Markdown Footnotes ❯

Markdown Checkbox/Task list

You can create checkbox by add hyphen starting of the line with [] or [x], space should be added before and after square brackets followed by content.

Checkbox is also called a Task list.

- [ ] Checkbox not checked
- [X] Checkbox checked

If you want to [ ] checkbox not checked it must be filled minimum one space and you want to checkbox checked it must be filled with X, as show in following example.

Example

- [ ] Milk
- [x] Tomato
- [x] Orange

Try this code ❯


Advertisement

Nested Checkbox List

You can also display a checkbox or tasks list in a nested structure.

Example

- [ ] Milk
- [x] Tomato
    - [x] 1kg
    - [x] 2kg
- [x] Orange

Try this code ❯


To display [] square brackets add escape \ backslash.

❮ Previous: Markdown Tables Next: Markdown Footnotes ❯
Advertisement