Markdown checkbox-How to draw checkbox or tick mark in GitHub Markdown table?

2.8K    Asked by SanjayDutt in Python , Asked on Apr 18, 2021

I am able to draw checkbox in Github README.md lists using


- [ ] (for unchecked checkbox)


- [x] (for checked checkbox)


But this is not working in the table. Does anybody know how to implement checkbox or checkmark in GitHub Markdown table?

Answered by Sanjay Dutt

To successfully draw markdown checkbox. Try adding a - before the [] or [x]. That's an - followed by a blank space.

Below is an example you can refer to:

low is an example you can refer to:


  ### Solar System Exploration, 1950s – 1960s
[ ] Mercury- [x] Venus- [x] Earth (Orbit/Moon)- [x] Mars- [ ] Jupiter- [ ] Saturn- [ ] Uranus- [ ] Neptune- [ ] Comet HaleyIt appears like below:Here's how one could do the same in a table:ff| Task | Time required | Assigned to | Current Status | Finished ||----------------|---------------|---------------|----------------|-----------|| Calendar Cache | > 5 hours | | in progress | - [x] ok?| Object Cache | > 5 hours | | in progress | [x] item1[ ] item2| Object Cache | > 5 hours | | in progress | - [x] item1- [ ] item2| Object Cache | > 5 hours | | in progress | [x] item1[ ] item2- [x] works- [x] works too### Solar System Exploration, 1950s – 1960s [ ] Mercury- [x] Venus
- [x] Earth (Orbit/Moon)
- [x] Mars
- [ ] Jupiter
- [ ] Saturn
- [ ] Uranus
- [ ] Neptune
- [ ] Comet Haley
It appears like below:
Here's how one could do the same in a table:ff
| Task | Time required | Assigned to | Current Status | Finished |
|----------------|---------------|---------------|----------------|-----------|
| Calendar Cache | > 5 hours | | in progress | - [x] ok?
| Object Cache | > 5 hours | | in progress | [x] item1[ ] item2
| Object Cache | > 5 hours | | in progress | - [x] item1- [ ] item2
| Object Cache | > 5 hours | | in progress | [x] item1[ ] item2
- [x] works
- [x] works too

Here's how it looks:



Your Answer

Interviews

Parent Categories