# Markdown 任务列表语法
任务列表使您可以创建带有复选框的项目列表。在支持任务列表的Markdown应用程序中,复选框将显示在内容旁边。要创建任务列表,请在任务列表项之前添加破折号(-
)和方括号,并[ ]
在其前面加上空格。要选择一个复选框,请x在方括号([x]
)之间添加in 。
- [x] Write the press release
- [ ] Update the website
- [ ] Contact the media
呈现的输出如下所示:
任务列表使您可以创建带有复选框的项目列表。在支持任务列表的Markdown应用程序中,复选框将显示在内容旁边。要创建任务列表,请在任务列表项之前添加破折号(-
)和方括号,并[ ]
在其前面加上空格。要选择一个复选框,请x在方括号([x]
)之间添加in 。
- [x] Write the press release
- [ ] Update the website
- [ ] Contact the media
呈现的输出如下所示: