本页目录
任务列表
创建
请在任务列表项之前添加破折号-
和方括号[ ]
并在[ ]前面加上空格
要选择一个复选框,请在方括号[x]
之间添加 x
语法
- - [x] Write the press release
- - [ ] Update the website
- - [ ] Contact the media
渲染效果:
- Write the press release
- Update the website
- Contact the media
安装
npm
- npm i markdown-it-task-lists --save
yarn
- yarn add markdown-it-task-lists --save