{"name":"markdown-it-task-lists","version":"1.0.0","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":"41cc70148be4eec3676497550b70d482a230b735","_id":"markdown-it-task-lists@1.0.0","_shasum":"59a9d1667d4107349e35c10399d720bb58dcd279","_from":".","_npmVersion":"3.6.0","_nodeVersion":"4.0.0","_npmUser":{"name":"revin","email":"rg@sevenite.com"},"dist":{"shasum":"59a9d1667d4107349e35c10399d720bb58dcd279","tarball":"http://registry-npm.ywwl.com/markdown-it-task-lists/download/markdown-it-task-lists-1.0.0.tgz","integrity":"sha512-utbRkRvpy+NXuDNxHr1chAxVm1GR+h0sjgj6j/3oQ6PSJZ3deO4rIHKxewrV8j9L4U+5I4foZfHeeztH23/u1g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGn0HJ+Qso/BXaBty95sVrprbRoznym5BfLcA8HiErttAiEAhY4IZwyYNV2zdHYnwjWvqFvLY2vLXJipXisIS7057UY="}],"size":3277,"noattachment":false,"key":"/markdown-it-task-lists/-/markdown-it-task-lists-1.0.0.tgz"},"maintainers":[{"name":"revin","email":"rg@sevenite.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/markdown-it-task-lists-1.0.0.tgz_1458929921975_0.1642062223982066"},"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":1458929922370,"_cnpm_publish_time":1458929922370,"dist-tags":{"latest":"2.1.1"}}