ENML (Evernote Markup Language) todo (
<en-todo />
) tag plugin for markdown-it markdown parser.
npm install markdown-it-enml-todo --save
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>