markdown-it-enml-todo
v1.0.2
Published
ENML (Evernote Markup Language) todo (`<en-todo />`) tag plugin for markdown-it markdown parser
Downloads
24
Maintainers
Readme
markdown-it-enml-todo
ENML (Evernote Markup Language) todo (
<en-todo />
) tag plugin for markdown-it markdown parser.
Install
npm install markdown-it-enml-todo --save
Usage
const md = require('markdown-it')()
.use(require('markdown-it-enml-todo'))
const result = md.render('- [x] task 1\n- [ ] task 2')
// result is:
// <ul class="task-list">
// <li class="task-list-item"><en-todo checked="true"></en-todo> task 1</li>
// <li class="task-list-item"><en-todo></en-todo> task 2</li>
// </ul>