Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
3 views
in DevOps and Agile by (19.7k points)
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?

1 Answer

0 votes
by (62.9k points)

Try adding a - before the [] or [x]. That's an - followed by a blank space.

Below 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 Haley

It appears like below:

Resultant Image

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<br/>[ ] item2

| Object Cache   | > 5 hours  |  | in progress | <ul><li>- [x] item1</li><li>- [ ] item2</li></ul>

| Object Cache   | > 5 hours  |  | in progress | <ul><li>[x] item1</li><li>[ ] item2</li></ul>

- [x] works

- [x] works too

 

Here's how it looks:

enter image description here

Related questions

+2 votes
1 answer
0 votes
1 answer
+2 votes
1 answer

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...