Skip to main content

Task list

Less than 1 minuteMarkdownMarkdownTask List

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

Config

// .vuepress/config.ts
import { defineUserConfig } from "vuepress";
import { hopeTheme } from "vuepress-theme-hope";

export default defineUserConfig({
  theme: hopeTheme({
    plugins: {
      mdEnhance: {
        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

- [ ] Plan A
- [x] Plan B