Skip to content
Task list

Task list

Posted Updated
By 廿四1 min Read

Let the Markdown file in your VitePress site support task list.

Setting

.vitepress/config.ts
ts
import { defineConfig } from 'vitepress-theme-niansi'

export default defineConfig({
  markdown: {
    plugins: {
      tasklist: true
    }
  }
})

Syntax

  • Use - [ ] some text to render an unchecked task item.
  • Use - [x] some text to render a checked task item. (Capital X is also supported)

Demo

Demo
md
- [ ] Plan A
- [x] Plan B
- [X] Plan C

Changelog

2026-04-18 23:33
View All Changelog