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
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
To display [] square brackets add escape \ backslash.