我可以使用在 Github README.md 列表中绘制复选框
- [ ] (for unchecked checkbox) - [x] (for checked checkbox)
但这在表格中不起作用。有人知道如何在 GitHub Markdown 表中实现复选框或复选标记吗?
尝试在or-之前添加一个。那是一个后跟一个空格。`[][x]-```
-
[x]
下面是一个来自 Github 博客的例子。
### Solar System Exploration, 1950s 鈥� 1960s - [ ] Mercury - [x] Venus - [x] Earth (Orbit/Moon) - [x] Mars - [ ] Jupiter - [ ] Saturn - [ ] Uranus - [ ] Neptune - [ ] Comet Haley
如下所示:
以下是如何在表格中执行相同操作:
| 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
这是它的外观: