vuepress-plugin-markdown-checkbox

1.0.8 • Public • Published

vuepress-plugin-markdown-checkbox

介绍(Introduction)

这是为 vuepress v2 扩展 markdown 语法的插件。 插件支持扩展 任务列表。

安装(Install)

## vuepress v2
npm i vuepress-plugin-markdown-checkbox -D

快速使用(Usage)

.vuepress/config.js自行引入插件。

const { defaultTheme } = require('@vuepress/theme-default')
module.exports = {
  plugins: [
    ...,
    require('vuepress-plugin-markdown-checkbox')({})
  ],
  theme: defaultTheme({
    ...,
  })
}

在页面中使用md支持的tasklist语法:

  - [ ] 任务1
  - [x] 任务2

页面展示效果如下:

图

Package Sidebar

Install

npm i vuepress-plugin-markdown-checkbox

Weekly Downloads

4

Version

1.0.8

License

MIT

Unpacked Size

7.4 kB

Total Files

5

Last publish

Collaborators

  • ouyangdan