markdown-it-todo
v1.0.5
Published
Markdown todo-list support tag plugin for markdown-it markdown parser, which showing as `<input class="markdown-todo" disabled="true" checked="true">`.
Downloads
39
Maintainers
Readme
markdown-it-todo
Markdown todo-list support tag plugin for markdown-it markdown parser, which showing as
<input class="markdown-todo" disabled="true" checked="true">
.
Install
npm install markdown-it-todo --save
Usage
const md = require('markdown-it')()
.use(require('markdown-it-todo'))
const result = md.render('- [x] task 1\n- [ ] task 2')
which result as(in a compact style in fact.):
<ul class="task-list">
<li class="task-list-item">
<input class="markdown-todo" disabled="true" checked="true"></input> task 1
</li>
<li class="task-list-item">
<input class="markdown-todo" disabled="true" ></input> task 2
</li>
</ul>