{"_id":"@commi/rollup-plugin-md2vue","_rev":"3-fbb1d263cdf5302382075cc9b4c8e1c8","name":"@commi/rollup-plugin-md2vue","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@commi/rollup-plugin-md2vue","version":"1.0.0","description":"Roll markdown to Vue 3 component with Rollup, extract 'demo' and convert it into execution effect and code display.","main":"dist/umd/index.js","module":"dist/esm/index.js","typings":"dist/types/index.d.ts","scripts":{"test":"jest","dev":"rimraf dist && rollup -c -w","build":"rimraf dist && rollup -c && tsc --emitDeclarationOnly","prepublish":"yarn build"},"dependencies":{"@rollup/pluginutils":"^4.1.1","markdown-it":"^8.4.1","markdown-it-container":"^2.0.0"},"devDependencies":{"@babel/preset-env":"^7.15.6","@rollup/plugin-commonjs":"^20.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^13.0.5","@rollup/plugin-run":"^2.1.0","babel-core":"^6.26.3","babel-jest":"^27.2.2","babel-loader":"^8.2.2","babel-polyfill":"^6.26.0","babel-preset-es2015":"^6.24.1","babel-preset-stage-0":"^6.24.1","jest":"^27.2.2","rimraf":"^3.0.2","rollup":"^2.57.0","rollup-plugin-typescript2":"^0.30.0","tslib":"^2.3.1","typescript":"^4.4.3"},"peerDependencies":{"highlight.js":"^10.4.1"},"repository":{"type":"git","url":"git+https://github.com/CodingCommunism/rollup-md2vue.git"},"keywords":["rollup","plugin"],"author":{"name":"liuyu666"},"license":"ISC","bugs":{"url":"https://github.com/CodingCommunism/rollup-md2vue/issues"},"homepage":"https://github.com/CodingCommunism/rollup-md2vue#readme","jest":{"transform":{"^.+\\.[t|j]sx?$":"babel-jest"},"testEnvironment":"jsdom"},"_id":"@commi/rollup-plugin-md2vue@1.0.0","dist":{"shasum":"4c616616d87c3690572eaa079b18de61955fb8ec","integrity":"sha512-llDBuqemS1+aBbXosQlypaLp20cZluF4WLk9vS6B5j0EuYIXI4tcmMEIx6BoO8e+kOxVhQrSRsZTmM+5ydhEyA==","tarball":"https://registry.npmjs.org/@commi/rollup-plugin-md2vue/-/rollup-plugin-md2vue-1.0.0.tgz","fileCount":14,"unpackedSize":732416,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDbO24aHt7UHOHM82id85LvvHUQC59xtfQscfP1WX4iEAiEA1NtJ/D/AIvGnc3ObY2CloWuu22Xhl/vXtfSm226Os10="}]},"_npmUser":{"name":"milkiq","email":"winnniq@commi.xyz"},"directories":{},"maintainers":[{"name":"milkiq","email":"winnniq@commi.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rollup-plugin-md2vue_1.0.0_1632997675168_0.6825067329678964"},"_hasShrinkwrap":false},"1.0.1":{"name":"@commi/rollup-plugin-md2vue","version":"1.0.1","description":"Roll markdown to Vue 3 component with Rollup, extract 'demo' and convert it into execution effect and code display.","main":"dist/umd/index.js","module":"dist/esm/index.js","typings":"dist/types/index.d.ts","scripts":{"test":"jest","dev":"rimraf dist && rollup -c -w","build":"rimraf dist && rollup -c && tsc --emitDeclarationOnly","prepublish":"yarn build"},"dependencies":{"@rollup/pluginutils":"^4.1.1","markdown-it":"^8.4.1","markdown-it-container":"^2.0.0"},"devDependencies":{"@babel/preset-env":"^7.15.6","@rollup/plugin-commonjs":"^20.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^13.0.5","@rollup/plugin-run":"^2.1.0","babel-core":"^6.26.3","babel-jest":"^27.2.2","babel-loader":"^8.2.2","babel-polyfill":"^6.26.0","babel-preset-es2015":"^6.24.1","babel-preset-stage-0":"^6.24.1","jest":"^27.2.2","rimraf":"^3.0.2","rollup":"^2.57.0","rollup-plugin-typescript2":"^0.30.0","tslib":"^2.3.1","typescript":"^4.4.3"},"peerDependencies":{"highlight.js":"^10.4.1"},"repository":{"type":"git","url":"git+https://github.com/CodingCommunism/rollup-md2vue.git"},"keywords":["rollup","plugin"],"author":{"name":"liuyu666"},"license":"ISC","bugs":{"url":"https://github.com/CodingCommunism/rollup-md2vue/issues"},"homepage":"https://github.com/CodingCommunism/rollup-md2vue#readme","jest":{"transform":{"^.+\\.[t|j]sx?$":"babel-jest"},"testEnvironment":"jsdom"},"_id":"@commi/rollup-plugin-md2vue@1.0.1","dist":{"shasum":"733b1326ce1245fc8f6906be5689d1d989411419","integrity":"sha512-TBCojPm5EUSk+bk9+9qr3yiETt8MqmbDzUC88kt5UCgsNEvP9qEo1s9zyOFwekiiXgPDXx5bGYZCkjQYsy4jwQ==","tarball":"https://registry.npmjs.org/@commi/rollup-plugin-md2vue/-/rollup-plugin-md2vue-1.0.1.tgz","fileCount":14,"unpackedSize":732412,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhzdhGCRA9TVsSAnZWagAAcQgP/1MUOwQMQ8PyjZPus2Et\nPZgaqxnPmrdnS9nSr5PNDlUOw1Emgem4xtUbySV5gWHJ2ct57+H+f7BorTNv\nquA6XGdyhJpGa+cOAWgL/d1HvoK2aAseHyyOQ4qWGe5EyJDF6fw84uQE5115\n651hLJy1VU65Jma9CyaljuNpH6HApz87PT6Mex504JlqkLwUhbYXO86AfIle\nheltL2wMwGnOaf0QA9cNbH6ZopV/viYoAA8PuTR+xt/9UTkiEIOkO5OD3r6D\nPHfDbvsNqrqj1RpYIRILgRpt9eV/jNu7d7mwsq0g0FZjiLNSC4d98W+OHuH0\nBBPgB9UG9p/5dnmT1gtMIls6nhopksx/XfKCzFJm2ytI8m5eYxSp4HlzuHrk\nnl96RlVLd8H70s9jYQWKkoO49lEWYEb7XPszNW1Qg/c1k9lhQX2n+WFEPBfS\nCyHPIKKhWbhgnU6gP62E28esiflweTRbwKY5WjIfIV5Tbak9/F5PRkypWI1/\nl3UunQ+c33lkwvr/2Ih1diE4xoC5GOyQ+Hr5SrViVMy0MI8OA0TEP967fuBE\nSMTxJQkvPw1c3A7ueuq3KKw7Zm5zst6vlyGXhsdlmlbKFQMtkOQcqIA3j5Y4\nya/QK3m13zTNCYozg9qaMBKvraOUci+IxugiXR9sDkMcICEZxFu46dbrkR0S\nWEbO\r\n=4eaf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICCooKm771vgHhXUyLiENtt4PDkt++A/EXufD15q2QgaAiEAs4uWzyTSVCRfteKIsNTLHVQ4LRJlYFK/TmlTQz95kak="}]},"_npmUser":{"name":"milkiq","email":"winnniq@commi.xyz"},"directories":{},"maintainers":[{"name":"milkiq","email":"winnniq@commi.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rollup-plugin-md2vue_1.0.1_1632998008399_0.7589675342267543"},"_hasShrinkwrap":false}},"time":{"created":"2021-09-30T10:27:55.119Z","1.0.0":"2021-09-30T10:27:55.631Z","modified":"2022-04-05T00:30:06.511Z","1.0.1":"2021-09-30T10:33:28.587Z"},"maintainers":[{"name":"milkiq","email":"winnniq@commi.xyz"}],"description":"Roll markdown to Vue 3 component with Rollup, extract 'demo' and convert it into execution effect and code display.","homepage":"https://github.com/CodingCommunism/rollup-md2vue#readme","keywords":["rollup","plugin"],"repository":{"type":"git","url":"git+https://github.com/CodingCommunism/rollup-md2vue.git"},"author":{"name":"liuyu666"},"bugs":{"url":"https://github.com/CodingCommunism/rollup-md2vue/issues"},"license":"ISC","readme":"# rollup-plugin-md2vue\n\n> Roll markdown to Vue 3 component with Rollup, extract 'demo' and convert it into execution effect and code display.\n\n\n``` js\nimport md2vue from 'rollup-plugin-md2vue'\n\nexport default {\n  plugins: [\n    md2vue(/* options */)\n  ]\n}\n```\n\n## Options\n\n``` js\nexport interface Options {\n  include: string | RegExp | (string | RegExp)[]\n  exclude: string | RegExp | (string | RegExp)[]\n  \n  // the path of your custom demo-block component\n  // e.g. '/src/components/demo-block.vue'\n  blockComponent: string\n}\n```\n\n\n\n## Question\n\n- Q: No highlight of code?\n\n  - Check your dependency, your project must install `hightlight.js`.\n  - Check init hightlight.js and import its style file. [Use highlight.js in ES6 Modules](https://github.com/highlightjs/highlight.js#es6-modules--import)\n\n- Q: custom demo-block component can't display?\n\n  - Your component must have three slot for demo's title(default), display area(name='source'), source code(name='highlight')\n\n    ```html\n    <template>\n      <slot></slot>\n      <div>\n        <slot name=\"source\"></slot>\n      </div>\n      <div>\n        <slot name=\"highlight\"></slot>\n      </div>\n    </template>\n    <script>\n    export default {\n      name: 'demo-block'\n    }\n    </script>\n    <style>\n    </style>\n    ```\n\n","readmeFilename":"README.md"}