{"name":"markdown-it-task-lists","version":"1.0.1","description":"A markdown-it plugin to create GitHub-style task lists","main":"index.js","scripts":{"test":"mocha --timeout 5000"},"repository":{"type":"git","url":"git+ssh://git@github.com/revin/markdown-it-task-lists.git"},"dependencies":{},"devDependencies":{"cheerio":"^0.20.0","markdown-it":"^6.0.0","mocha":"^2.4.5"},"keywords":["markdown","markdown-it","markdown-it-plugin","task","list","todo","checkbox"],"author":{"name":"Revin Guillen"},"license":"ISC","bugs":{"url":"https://github.com/revin/markdown-it-task-lists/issues"},"homepage":"https://github.com/revin/markdown-it-task-lists#readme","gitHead":"dde2d6e83fea3c494716eb9eb1b20b21529de887","_id":"markdown-it-task-lists@1.0.1","_shasum":"03c86366255ead9c4e1ce74b9c3a4f3f99c3296e","_from":".","_npmVersion":"3.6.0","_nodeVersion":"4.0.0","_npmUser":{"name":"revin","email":"rg@sevenite.com"},"dist":{"shasum":"03c86366255ead9c4e1ce74b9c3a4f3f99c3296e","tarball":"http://registry-npm.ywwl.com/markdown-it-task-lists/download/markdown-it-task-lists-1.0.1.tgz","integrity":"sha512-HETXZTOfWoITzPIs7sBUi3tIn3iBcIFEG1TD69eRAuyWs2+0U0xhw+82v4OvfLq998lmclg+GMNNXnvYu2eVYg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCub86sQoDOsvmXFzq2cLsiWQcRqdr18B1R8YwP8htNqwIhAOPsiNO9T0tog/0C+uMVFqb0ly6JAf+bMcdflmHcDzNd"}],"size":3277,"noattachment":false,"key":"/markdown-it-task-lists/-/markdown-it-task-lists-1.0.1.tgz"},"maintainers":[{"name":"revin","email":"rg@sevenite.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/markdown-it-task-lists-1.0.1.tgz_1458935049380_0.5171114038676023"},"directories":{},"readme":"# markdown-it-task-lists\n\nA [markdown-it](https://www.npmjs.com/package/markdown-it) plugin to create GitHub-style [task lists](https://github.com/blog/1825-task-lists-in-all-markdown-documents)\n\n[![Greenkeeper badge](https://badges.greenkeeper.io/revin/markdown-it-task-lists.svg)](https://greenkeeper.io/)\n[![Build Status](https://travis-ci.org/revin/markdown-it-task-lists.svg?branch=master)](https://travis-ci.org/revin/markdown-it-task-lists)\n[![Code Climate](https://codeclimate.com/github/revin/markdown-it-task-lists/badges/gpa.svg)](https://codeclimate.com/github/revin/markdown-it-task-lists)\n\n## What it does\n\n- Builds [task/todo lists](https://github.com/blog/1825-task-lists-in-all-markdown-documents) out of markdown lists with items starting with `[ ]` or `[x]`.\n- Nothing else\n\n### Why is this useful?\n\nWhen you have markdown documentation with checklists, rendering HTML checkboxes\nout of the list items looks nicer than the raw square brackets.\n\n## Installation\n\n```sh\nnpm install markdown-it-task-lists\n```\n\n## Usage\n\nUse it the same as a normal markdown-it plugin:\n\n```js\nvar md = require('markdown-it');\nvar taskLists = require('markdown-it-task-lists');\n\nvar parser = md().use(taskLists);\n\nvar result = parser.render(...); // markdown string containing task list items\n```\n\nThe rendered checkboxes are disabled; to change this, pass a truthy value into\nthe `enabled` property of the plugin options:\n\n```js\nvar parser = md().use(taskLists, {enabled: true});\n```\n\nIf you'd like to wrap the rendered list items in a `<label>` element for UX\npurposes, pass a truthy value to the `label` property of the plugin options:\n\n```js\nvar parser = md().use(taskLists, {label: true});\n```\n\nTo add the label after the checkbox pass a truthy value to `labelAfter` property:\n\n```js\nvar parser = md().use(taskLists, {label: true, labelAfter: true});\n```\n\n**Note:** This option does require the `label` option to be truthy.\n\nThe options can be combined, of course.\n\n### Browser Usage\n\nIf you use one of the versions of this module available in `dist/` directly in\na browser by including it with a `<script>` element, it will be available\nglobally in `window.markdownitTaskLists`.\n\n## Tests\n\n```sh\nnpm install\nnpm test\n```\n\n## License\n\nISC\n","publish_time":1458935049778,"_cnpm_publish_time":1458935049778,"dist-tags":{"latest":"2.1.1"}}