Task list
Let the Markdown file in your VitePress site support task list.
Setting
ts
import { defineConfig } from 'vitepress-theme-niansi'
export default defineConfig({
markdown: {
plugins: {
tasklist: true
}
}
})Syntax
- Use
- [ ] some textto render an unchecked task item. - Use
- [x] some textto render a checked task item. (CapitalXis also supported)
Demo
Demo
md
- [ ] Plan A
- [x] Plan B
- [X] Plan CChangelog
2026-04-18 23:33
View All Changelog