{"_id":"markdown-it-chain","_rev":"402116","name":"markdown-it-chain","description":"A chaining API like webpack-chain but for markdown-it.","dist-tags":{"latest":"1.3.0"},"maintainers":[{"name":"ulivz","email":""}],"time":{"modified":"2021-08-04T04:34:29.000Z","created":"2018-08-22T17:59:54.769Z","1.3.0":"2018-11-29T16:00:11.667Z","1.2.1":"2018-10-09T17:16:02.090Z","1.2.0":"2018-09-22T16:40:03.766Z","1.1.2":"2018-09-22T15:02:53.521Z","1.1.1":"2018-09-22T15:00:52.947Z","1.1.0":"2018-08-22T17:59:54.769Z"},"users":{},"author":{"name":"ULIVZ","email":"chl814@foxmail.com"},"repository":{"url":"git+https://github.com/ULIVZ/markdown-it-chain.git","type":"git"},"versions":{"1.3.0":{"name":"markdown-it-chain","version":"1.3.0","description":"A chaining API like webpack-chain but for markdown-it.","repository":{"url":"git+https://github.com/ULIVZ/markdown-it-chain.git","type":"git"},"main":"src/index.js","scripts":{"test":"npm run lint && jest","lint":"xo src","release":"release-it"},"author":{"name":"ULIVZ","email":"chl814@foxmail.com"},"license":"MIT","jest":{"testEnvironment":"node"},"babel":{"env":{"test":{"presets":[["env",{"targets":{"node":"current"}}]]}}},"dependencies":{"webpack-chain":"^4.9.0"},"keywords":["markdown-it","chain"],"engines":{"node":">=6.9"},"devDependencies":{"eslint-plugin-jest":"^21.21.0","eslint-plugin-vue-libs":"^3.0.0","jest-cli":"^22.1.4","markdown-it":"^8.4.2","markdown-it-anchor":"^5.0.2","markdown-it-table-of-contents":"^0.4.3","xo":"^0.22.0","release-it":"v7.4.8","conventional-changelog-cli":"^2.0.1"},"peerDependencies":{"markdown-it":">=5.0.0"},"xo":{"extends":["plugin:vue-libs/recommended","plugin:jest/recommended"],"rules":{"unicorn/filename-case":false},"envs":["jest"]},"gitHead":"da4188d44997bec0123a5b64bd6f7829442f6124","bugs":{"url":"https://github.com/ULIVZ/markdown-it-chain/issues"},"homepage":"https://github.com/ULIVZ/markdown-it-chain#readme","_id":"markdown-it-chain@1.3.0","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"ulivz","email":"472590061@qq.com"},"dist":{"shasum":"ccf6fe86c10266bafb4e547380dfd7f277cc17bc","size":3514,"noattachment":false,"key":"/markdown-it-chain/-/markdown-it-chain-1.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/markdown-it-chain/download/markdown-it-chain-1.3.0.tgz"},"maintainers":[{"name":"ulivz","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/markdown-it-chain_1.3.0_1543507211551_0.6013264148109456"},"_hasShrinkwrap":false,"publish_time":1543507211667,"_cnpm_publish_time":1543507211667},"1.2.1":{"name":"markdown-it-chain","version":"1.2.1","description":"A chaining API like webpack-chain but for markdown-it.","repository":{"url":"git+https://github.com/ULIVZ/markdown-it-chain.git","type":"git"},"main":"src/index.js","scripts":{"test":"npm run lint && jest","lint":"xo src","release":"release-it"},"author":{"name":"ULIVZ","email":"chl814@foxmail.com"},"license":"MIT","jest":{"testEnvironment":"node"},"babel":{"env":{"test":{"presets":[["env",{"targets":{"node":"current"}}]]}}},"dependencies":{"webpack-chain":"^4.9.0"},"keywords":["markdown-it","chain"],"engines":{"node":">=6.9"},"devDependencies":{"eslint-plugin-jest":"^21.21.0","eslint-plugin-vue-libs":"^3.0.0","jest-cli":"^22.1.4","markdown-it":"^8.4.2","markdown-it-anchor":"^5.0.2","markdown-it-table-of-contents":"^0.4.3","xo":"^0.22.0","release-it":"v7.4.8","conventional-changelog-cli":"^2.0.1"},"peerDependencies":{"markdown-it":">=5.0.0"},"xo":{"extends":["plugin:vue-libs/recommended","plugin:jest/recommended"],"rules":{"unicorn/filename-case":false},"envs":["jest"]},"gitHead":"3c16fadd79fa62b7aaec515c7b2e4a970a5d852d","bugs":{"url":"https://github.com/ULIVZ/markdown-it-chain/issues"},"homepage":"https://github.com/ULIVZ/markdown-it-chain#readme","_id":"markdown-it-chain@1.2.1","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"ulivz","email":"472590061@qq.com"},"dist":{"shasum":"eb77a8dc06265d48d0b6c729170e391902db22cb","size":3470,"noattachment":false,"key":"/markdown-it-chain/-/markdown-it-chain-1.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/markdown-it-chain/download/markdown-it-chain-1.2.1.tgz"},"maintainers":[{"name":"ulivz","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/markdown-it-chain_1.2.1_1539105361921_0.14549811773052124"},"_hasShrinkwrap":false,"publish_time":1539105362090,"_cnpm_publish_time":1539105362090},"1.2.0":{"name":"markdown-it-chain","version":"1.2.0","description":"A chaining API like webpack-chain but for markdown-it.","repository":{"url":"git+https://github.com/ULIVZ/markdown-it-chain.git","type":"git"},"main":"src/index.js","scripts":{"test":"npm run lint && jest","lint":"xo src","release":"release-it"},"author":{"name":"ULIVZ","email":"chl814@foxmail.com"},"license":"MIT","jest":{"testEnvironment":"node"},"babel":{"env":{"test":{"presets":[["env",{"targets":{"node":"current"}}]]}}},"dependencies":{"webpack-chain":"^4.9.0"},"keywords":["markdown-it","chain"],"engines":{"node":">=6.9"},"devDependencies":{"eslint-plugin-jest":"^21.21.0","eslint-plugin-vue-libs":"^3.0.0","jest-cli":"^22.1.4","markdown-it":"^8.4.2","markdown-it-anchor":"^5.0.2","markdown-it-table-of-contents":"^0.4.3","xo":"^0.22.0","release-it":"v7.4.8","conventional-changelog-cli":"^2.0.1"},"peerDependencies":{"markdown-it":"^5.0.0"},"xo":{"extends":["plugin:vue-libs/recommended","plugin:jest/recommended"],"rules":{"unicorn/filename-case":false},"envs":["jest"]},"gitHead":"aa1749c29adb4c62ffb9de26d9de239704c4eef0","bugs":{"url":"https://github.com/ULIVZ/markdown-it-chain/issues"},"homepage":"https://github.com/ULIVZ/markdown-it-chain#readme","_id":"markdown-it-chain@1.2.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"ulivz","email":"472590061@qq.com"},"dist":{"shasum":"b11db6755a3d2ab3da89e9566fc3ac384f75fdac","size":3449,"noattachment":false,"key":"/markdown-it-chain/-/markdown-it-chain-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/markdown-it-chain/download/markdown-it-chain-1.2.0.tgz"},"maintainers":[{"name":"ulivz","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/markdown-it-chain_1.2.0_1537634403597_0.24391699303490255"},"_hasShrinkwrap":false,"publish_time":1537634403766,"_cnpm_publish_time":1537634403766},"1.1.2":{"name":"markdown-it-chain","version":"1.1.2","description":"A chaining API like webpack-chain but for markdown-it.","repository":{"url":"git+https://github.com/ULIVZ/markdown-it-chain.git","type":"git"},"main":"src/index.js","scripts":{"test":"npm run lint && jest","lint":"xo src","release":"release-it"},"author":{"name":"ULIVZ","email":"chl814@foxmail.com"},"license":"MIT","jest":{"testEnvironment":"node"},"babel":{"env":{"test":{"presets":[["env",{"targets":{"node":"current"}}]]}}},"dependencies":{"webpack-chain":"^4.9.0"},"keywords":["markdown-it","chain"],"engines":{"node":">=6.9"},"devDependencies":{"eslint-plugin-jest":"^21.21.0","eslint-plugin-vue-libs":"^3.0.0","jest-cli":"^22.1.4","markdown-it":"^8.4.2","markdown-it-anchor":"^5.0.2","markdown-it-table-of-contents":"^0.4.3","xo":"^0.22.0","release-it":"v7.4.8","conventional-changelog-cli":"^2.0.1"},"peerDependencies":{"markdown-it":"^5.0.0"},"xo":{"extends":["plugin:vue-libs/recommended","plugin:jest/recommended"],"rules":{"unicorn/filename-case":false},"envs":["jest"]},"gitHead":"3ef82ec610d76709dd879ada6b7a31184cf4443b","bugs":{"url":"https://github.com/ULIVZ/markdown-it-chain/issues"},"homepage":"https://github.com/ULIVZ/markdown-it-chain#readme","_id":"markdown-it-chain@1.1.2","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"ulivz","email":"472590061@qq.com"},"dist":{"shasum":"196e110ab188c42da579b6bbbbc847c63108dedc","size":3324,"noattachment":false,"key":"/markdown-it-chain/-/markdown-it-chain-1.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/markdown-it-chain/download/markdown-it-chain-1.1.2.tgz"},"maintainers":[{"name":"ulivz","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/markdown-it-chain_1.1.2_1537628573371_0.30114477628474345"},"_hasShrinkwrap":false,"publish_time":1537628573521,"_cnpm_publish_time":1537628573521},"1.1.1":{"name":"markdown-it-chain","version":"1.1.1","description":"A chaining API like webpack-chain but for markdown-it.","repository":{"url":"git+https://github.com/ULIVZ/markdown-it-chain.git","type":"git"},"main":"src/index.js","scripts":{"test":"npm run lint && jest","lint":"xo src","release":"release-it"},"author":{"name":"ULIVZ","email":"chl814@foxmail.com"},"license":"MIT","jest":{"testEnvironment":"node"},"babel":{"env":{"test":{"presets":[["env",{"targets":{"node":"current"}}]]}}},"dependencies":{"webpack-chain":"^4.9.0"},"keywords":["markdown-it","chain"],"engines":{"node":">=6.9"},"devDependencies":{"eslint-plugin-jest":"^21.21.0","eslint-plugin-vue-libs":"^3.0.0","jest-cli":"^22.1.4","markdown-it":"^8.4.2","markdown-it-anchor":"^5.0.2","markdown-it-table-of-contents":"^0.4.3","xo":"^0.22.0","release-it":"v7.4.8","conventional-changelog-cli":"^2.0.1"},"peerDependencies":{"markdown-it":"^5.0.0"},"xo":{"extends":["plugin:vue-libs/recommended","plugin:jest/recommended"],"rules":{"unicorn/filename-case":false},"envs":["jest"]},"gitHead":"b36a3993de328051e36ceb00777a5e773430576e","bugs":{"url":"https://github.com/ULIVZ/markdown-it-chain/issues"},"homepage":"https://github.com/ULIVZ/markdown-it-chain#readme","_id":"markdown-it-chain@1.1.1","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"ulivz","email":"472590061@qq.com"},"dist":{"shasum":"cb505de56c70263adff6176a33337adb0f8063ed","size":2963,"noattachment":false,"key":"/markdown-it-chain/-/markdown-it-chain-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/markdown-it-chain/download/markdown-it-chain-1.1.1.tgz"},"maintainers":[{"name":"ulivz","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/markdown-it-chain_1.1.1_1537628452835_0.4049618421675909"},"_hasShrinkwrap":false,"publish_time":1537628452947,"_cnpm_publish_time":1537628452947},"1.1.0":{"name":"markdown-it-chain","version":"1.1.0","description":"A chaining API like webpack-chain but for markdown-it.","repository":{"url":"git+https://github.com/ULIVZ/markdown-it-chain.git","type":"git"},"main":"src/index.js","files":["dist"],"scripts":{"test":"npm run lint && jest","lint":"xo src","prepublishOnly":"npm run build","build":"bili","release":"release-it"},"author":{"name":"ULIVZ","email":"chl814@foxmail.com"},"license":"MIT","jest":{"testEnvironment":"node"},"babel":{"env":{"test":{"presets":[["env",{"targets":{"node":"current"}}]]}}},"dependencies":{"webpack-chain":"^4.9.0"},"keywords":["markdown-it","chain"],"engines":{"node":">=6.9"},"devDependencies":{"babel-preset-env":"^1.4.0","bili":"^2.2.3","eslint-plugin-jest":"^21.21.0","eslint-plugin-vue-libs":"^3.0.0","jest-cli":"^22.1.4","markdown-it":"^8.4.2","markdown-it-anchor":"^5.0.2","markdown-it-table-of-contents":"^0.4.3","xo":"^0.22.0","release-it":"v7.4.8","conventional-changelog-cli":"^2.0.1"},"peerDependencies":{"markdown-it":"^5.0.0"},"xo":{"extends":["plugin:vue-libs/recommended","plugin:jest/recommended"],"rules":{"unicorn/filename-case":false},"envs":["jest"]},"gitHead":"8888f29f168e40c71f28cd8d3ec65dd3496d3be6","bugs":{"url":"https://github.com/ULIVZ/markdown-it-chain/issues"},"homepage":"https://github.com/ULIVZ/markdown-it-chain#readme","_id":"markdown-it-chain@1.1.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"ulivz","email":"472590061@qq.com"},"dist":{"shasum":"d521d710d86a78ef6edc834197624f6f55317974","size":3430,"noattachment":false,"key":"/markdown-it-chain/-/markdown-it-chain-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/markdown-it-chain/download/markdown-it-chain-1.1.0.tgz"},"maintainers":[{"name":"ulivz","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/markdown-it-chain_1.1.0_1534960794702_0.7699121218541567"},"_hasShrinkwrap":false,"publish_time":1534960794769,"_cnpm_publish_time":1534960794769}},"readme":"# markdown-it-chain\n\n> A chaining API like [webpack-chain](https://github.com/neutrinojs/webpack-chain) but for [markdown-it](https://markdown-it.github.io/markdown-it/).\n\n[![NPM version](https://img.shields.io/npm/v/markdown-it-chain.svg?style=flat)](https://npmjs.com/package/markdown-it-chain)  \n\n## Install\n\n**Yarn**\n\n```bash\nyarn add -dev markdown-it-chain\n```\n\n**npm**\n\n```bash\nnpm install --save-dev markdown-it-chain\n```\n\n## Getting Started\n\n```js\n// Require the markdown-it-chain module. This module exports a single\n// constructor function for creating a configuration API.\nconst Config = require('markdown-it-chain')\n\n// Instantiate the configuration with a new API\nconst config = new Config()\n\n// Make configuration changes using the chain API.\n// Every API call tracks a change to the stored configuration.\nconfig\n  // Interact with 'options' in new MarkdownIt\n  // Ref: https://markdown-it.github.io/markdown-it/#MarkdownIt.new\n  .options\n    .html(true) // equal to .set('html', true)\n    .linkify(true)\n    .end()\n\n  // Interact with 'plugins'\n  .plugin('toc')\n    // The first parameter is the plugin module, which may be a function\n    // while the second parameter is an array of parameters accepted by the plugin.\n    .use(require('markdown-it-table-of-contents'), [{\n      includeLevel: [2, 3]\n    }])\n    // Move up one level, like .end() in jQuery.\n    .end()\n\n  .plugin('anchor')\n    .use(require('markdown-it-anchor'), [{\n      permalink: true,\n      permalinkBefore: true,\n      permalinkSymbol: '$'\n    }])\n    // Apply this plugin before toc.\n    .before('toc')\n\n// Create a markdown-it instance using the above configuration\nconst md = config.toMd()\nmd.render('[[TOC]] \\n # h1 \\n ## h2 \\n ## h3 ')\n```\n\n## Worth Reading\n\nIn order to ensure the consistency of the chained API world, `webpack-it-chain` is developed directly on the basis of [webpack-chain](https://github.com/neutrinojs/webpack-chain) and ensures that the usage is completely consistent.\n\nHere are some things worth reading that come from `webpack-chain`:\n\n- [ChainedMap](https://github.com/neutrinojs/webpack-chain#chainedmap)\n- [Config plugins](https://github.com/neutrinojs/webpack-chain#config-plugins)\n\n## Author\n\n**markdown-it-chain** © [ULIVZ](https://github.com/ULIVZ), Released under the [MIT](./LICENSE) License.<br>\nAuthored and maintained by ULIVZ with help from contributors ([list](https://github.com/ULIVZ/markdown-it-chain/contributors)).\n\n> [github.com/ulivz](https://github.com/ULIVZ) · GitHub [@ULIVZ](https://github.com/ULIVZ) · Twitter [@_ulivz](https://twitter.com/_ulivz)\n","_attachments":{},"homepage":"https://github.com/ULIVZ/markdown-it-chain#readme","bugs":{"url":"https://github.com/ULIVZ/markdown-it-chain/issues"},"license":"MIT"}