Markdown - Multi checkbox in one line

Huy it picture Huy it · Jul 29, 2015 · Viewed 10.1k times · Source

i have a issue with markdown in github comment.

- [ ] [ ] [ ] [ ] [ ] item 1
- [ ] - [ ] - [ ] - [ ]item 2

With above code, only the first checkbox is ok :(

Answer

Waylan picture Waylan · Jul 29, 2015

The documentation makes no mention of supporting multiple checkboxes on one line. I suspect it is not possible. However, if you want to have multiple checkboxes for one item, you can create a nested list. Like this:

- [ ] item 1
    - [ ] item 1-1
    - [ ] item 1-2
    - [ ] item 1-3
    - [ ] item 1-4
- [ ] item 2
    - [ ] item 2-1
    - [ ] item 2-2
    - [ ] item 2-3
    - [ ] item 2-4