任务列表
最后更新于:2022-04-02 01:04:59
Issues和Pull requests里可以添加复选框,语法如下(注意空白符):
~~~
- [ ] Be awesome
- [ ] Prepare dinner
- [ ] Research recipe
- [ ] Buy ingredients
- [ ] Cook recipe
- [ ] Sleep
~~~
![](https://docs.gechiui.com/gc-content/uploads/sites/kancloud/2015-07-16_55a77695140e3.png)
当项目被选中时,它对应的Markdown源码也被更新了:
~~~
- [x] Be awesome
- [ ] Prepare dinner
- [x] Research recipe
- [x] Buy ingredients
- [ ] Cook recipe
- [ ] Sleep
~~~
[_进一步了解任务列表._](https://help.github.com/articles/writing-on-github#task-lists)
#### Markdown文件中的任务列表
在完全适配Markdown语法的文件中可以使用以下语法加入一个 **只读** 的任务列表
~~~
- [ ] Mercury
- [x] Venus
- [x] Earth
- [x] Moon
- [x] Mars
- [ ] Deimos
- [ ] Phobos
~~~
* [ ] Mercury
* [x] Venus
* [x] Earth
* [x] Moon
* [x] Mars
* [ ] Deimos
* [ ] Phobos
[_进一步了解Markdown文件中的任务列表_](https://github.com/blog/1825-task-lists-in-all-markdown-documents)
';