{"name":"markdown-it-task-lists","version":"1.2.2","description":"A markdown-it plugin to create GitHub-style task lists","main":"index.js","scripts":{"test":"mocha --timeout 5000","clean":"rm -Rf dist && mkdir dist","build":"npm run clean && npm run build-dist","build-dist":"npm run build-dist-copyright && npm run build-dist-file && npm run build-dist-min","build-dist-copyright":"echo /*! ${npm_package_name} ${npm_package_version} ${npm_package_homepage} by ${npm_package_author} @license ${npm_package_license} \\*/ > dist/${npm_package_name}.js","build-dist-file":"browserify ${npm_package_main} -s markdownitTaskLists >> dist/${npm_package_name}.js","build-dist-min":"uglifyjs dist/${npm_package_name}.js -b beautify=false,ascii-only=true -c -m --preamble \"/*! ${npm_package_name} ${npm_package_version} ${npm_package_homepage} by ${npm_package_author} @license {$npm_package_license} */\" > dist/${npm_package_name}.min.js"},"repository":{"type":"git","url":"git+ssh://git@github.com/revin/markdown-it-task-lists.git"},"dependencies":{},"devDependencies":{"browserify":"*","cheerio":"^0.20.0","markdown-it":"^6.1.0","mocha":"*","uglify":"*"},"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":"a24b3d2f5eccdfbc771ce2fad63b17315f6b4e5b","_id":"markdown-it-task-lists@1.2.2","_shasum":"09c5a7dd65a7cea8d58e3635dc2bc281ae1eda56","_from":".","_npmVersion":"3.8.6","_nodeVersion":"5.11.1","_npmUser":{"name":"revin","email":"rg@sevenite.com"},"dist":{"shasum":"09c5a7dd65a7cea8d58e3635dc2bc281ae1eda56","tarball":"http://registry-npm.ywwl.com/markdown-it-task-lists/download/markdown-it-task-lists-1.2.2.tgz","integrity":"sha512-NfX4xXC4HPKtl9DQUh3AHI9Ur6Yyyf6nuclOvojtFuofq5MPF62u3W049XFui3iGItN4x/YBSjVVWUxG0hfVvQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC+fV+ppEJ7J6XVkMJD5pBVWjcv3yTkRvUjeQifgcI4MAiEAvXh8PvxsWb4s6tuHN3j0DRpVGHszLG8B3PVNNhGOZvU="}],"size":4993,"noattachment":false,"key":"/markdown-it-task-lists/-/markdown-it-task-lists-1.2.2.tgz"},"maintainers":[{"name":"revin","email":"rg@sevenite.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/markdown-it-task-lists-1.2.2.tgz_1466544660383_0.3395785486791283"},"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":1466544660859,"_cnpm_publish_time":1466544660859,"dist-tags":{"latest":"2.1.1"}}