{"_id":"@attentif/metalsmith-markdownit","_rev":"4-21cf42aed8737eb50f0460ce979449c8","name":"@attentif/metalsmith-markdownit","dist-tags":{"latest":"0.6.3"},"versions":{"0.6.0":{"name":"@attentif/metalsmith-markdownit","description":"A Metalsmith plugin to convert markdown files.","repository":{"type":"git","url":"git://github.com/mayo/metalsmith-markdownit.git"},"version":"0.6.0","license":"MIT","main":"lib/index.js","dependencies":{"debug":"^4.3.1","markdown-it":"^12.0.4","minimatch":"^3.0.4"},"devDependencies":{"assert-dir-equal":"1.x","markdown-it-abbr":"^1.0.4","metalsmith":"2.x","mocha":"^8.2.1"},"scripts":{"test":"mocha"},"gitHead":"49f3aecc12d9a3d62c4ee71fe1d57996c178acaa","bugs":{"url":"https://github.com/mayo/metalsmith-markdownit/issues"},"homepage":"https://github.com/mayo/metalsmith-markdownit#readme","_id":"@attentif/metalsmith-markdownit@0.6.0","_nodeVersion":"14.15.4","_npmVersion":"6.14.11","_npmUser":{"name":"sgoumaz","email":"simon@attentif.ch"},"dist":{"integrity":"sha512-KvK6c6AhtI5H8gPuaCIlfq0yE/0enPyh4qzjita8D8neuwU+l2qugWia/9riqU8XpGeGDD2vQ+sNrakGImqT9w==","shasum":"faf3ca16a1ff36046963c9744dfdfba67afc47c4","tarball":"https://registry.npmjs.org/@attentif/metalsmith-markdownit/-/metalsmith-markdownit-0.6.0.tgz","fileCount":35,"unpackedSize":15937,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgGvIxCRA9TVsSAnZWagAAkYgP/22cIkPEGTU7lgluL3yq\nOHUQL748dzMk5jEjbGlbKDT93qMMymJA0KXvItdSbXjOXACnoWLBeTZUyNXK\nrnj0qzDT/xXRuE1khmRS5Qi6IZXZQfDHpmKkzSUstS+dRThsRczXlC3pvyIs\nI75MGK3vAfl7xyf6IZGZOYQgQ1Iqmp8Jh7XDyLe3JHo0c85Nt9/26/ZOqBRy\nqMvrwNUXpoUo/rPWcTpTPY2KAbT5CzKA4exDFKklUtYRLUU56rLo8TE9BqR8\nrYFZZZb17gcr/mx0ShcUtvVcrRWMY9JkIqbx6bkWfJMwhNpJ8xYNZvu6axi6\nJ9d///2EkkVPB5s/RqNEKOPEENVj3v1hiTdLVVX7o6Maf3W2osGtJqri4EHc\nn8ycDYNc9EAnXoEa6bE2KS0Dru+ADhzSwWMJH/oNmNyY5+UncDYIUKGBwDyE\n23tYQqlKeF0FrgPvsZK+ZzprwQDIa7ND0HONGmUWR0hWRyKkrgM1pUwt6oFn\njQMfyiOcoiRVLHKoAAwlGCQoDxgPytsD6JVBQPOy3f+NMbP6QKbEk3yk+lD5\n/0BcrPDOb1AfgpKB/aFQzaBaZK2OkAEQZ6tR8O8ZnUEmFu1fNTXOOXPPPYS/\nr9KmdUWeaiBtt42Li3GqsVm0Cx/U/hMvl3qQFFDZPtYqpIi14PR87dpcyzoh\nHov3\r\n=3ABx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDEhPTvHmA40mjSU756wliFh0b+zpGodKKqLRLtRuIWnAIhAO3CUQ/AqyKMkkih530Cr9f3+usawkvqP8Ti08nkg5+O"}]},"directories":{},"maintainers":[{"name":"sgoumaz","email":"simon@attentif.ch"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/metalsmith-markdownit_0.6.0_1612378673389_0.9412638016877675"},"_hasShrinkwrap":false},"0.6.1":{"name":"@attentif/metalsmith-markdownit","description":"A Metalsmith plugin to convert markdown files.","repository":{"type":"git","url":"git://github.com/attentif/metalsmith-markdownit.git"},"version":"0.6.1","license":"MIT","main":"lib/index.js","dependencies":{"debug":"^4.3.1","markdown-it":"^12.0.4","minimatch":"^3.0.4"},"devDependencies":{"assert-dir-equal":"1.x","markdown-it-abbr":"^1.0.4","metalsmith":"2.x","mocha":"^8.2.1"},"scripts":{"test":"mocha"},"gitHead":"be6850b8101344330ac4d5785f0730a6b6ab8e28","bugs":{"url":"https://github.com/attentif/metalsmith-markdownit/issues"},"homepage":"https://github.com/attentif/metalsmith-markdownit#readme","_id":"@attentif/metalsmith-markdownit@0.6.1","_nodeVersion":"14.15.4","_npmVersion":"6.14.11","_npmUser":{"name":"sgoumaz","email":"simon@attentif.ch"},"dist":{"integrity":"sha512-n9RqbNF7SrjeUvaiNYQ8olsXi6n3N8H/eFXV/R3JssbHkKnZ3CT1vx2e6Z4dWpjL/uiSwt+UbUJKdgX517JE8w==","shasum":"563f889943aa4a7839978c40700e6e64d22dd028","tarball":"https://registry.npmjs.org/@attentif/metalsmith-markdownit/-/metalsmith-markdownit-0.6.1.tgz","fileCount":35,"unpackedSize":15637,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgG7cBCRA9TVsSAnZWagAAOBsP/2Tnl5uTLRf050PlhUmx\nv2ZNwh1FYfMo/LSNjTtB1IL3uUY34lKDX4Dn/Qajnq2MZd84038O/+zZ76VQ\nYk007B5OvWU1gHrh0RCVmGAmU3eneHWhJ99sVUu6HStQr/zSrn+g3u5FGmgw\nwloCT9dM4uzEtBBPj52eBvqOw8Zo3/V2yJQOGBkoccXj4Rd8U9sPwdu3+bLF\nCjbv3H5lq/FcMQPJh19KqqeqkHl1Mv6r6SdaP+Un2EOPEo3DM/H6ZhDDjDDc\n9mw4d2ysAKuRxB/6zz0HGZ9PmHriga2VI4zZSuBrjhzO81YmVSADJOjcUU1w\nCYNphuIQDfi8uGRntlBAwcOlp9GCkpVOWdaekN6bxNufkDecjGX4fTNIhofJ\nNwF35UHVPssi7l3KQc4YmPMS8qC567asaeg8Fl8ng+6ihW1vt120cnEcASnL\njKhoyXRb32Dps/luVOmwxBDWa4YWVPsMcUqDHPxPketxsdhQYvYSddUB/Sbc\nTm4XyAGwDlBC3sBU8VkD9atbvNpTQfbjXJnBoIJOk/J9YAqboSCkgZFA61YA\nSuc07nhbzCvz+PrXWc2zTY02U6f4BsOq2yX4QwpGSHWzNTpEhGpchxpVX/e9\nWSwMTrxBEojeEud/uY4Pc1/Rbhkk17nRRQ5g9Qk0naAj5iujOGZkE/Vvlfc3\nPurO\r\n=XKye\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFIsPt6jTpRs7Ub5S+H2JwOsZjMhsnyzFSX2bK6nlgCiAiEA2RPKsZ4hnobKDVxevMUK+J9ljdYIXtLYc/ORlH/HlFw="}]},"directories":{},"maintainers":[{"name":"sgoumaz","email":"simon@attentif.ch"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/metalsmith-markdownit_0.6.1_1612429057587_0.6229442526975981"},"_hasShrinkwrap":false},"0.6.2":{"name":"@attentif/metalsmith-markdownit","description":"A Metalsmith plugin to convert markdown files.","repository":{"type":"git","url":"git://github.com/attentif/metalsmith-markdownit.git"},"version":"0.6.2","license":"MIT","main":"lib/index.js","dependencies":{"debug":"^4.3.4","markdown-it":"^12.3.2","minimatch":"^5.0.1"},"devDependencies":{"assert-dir-equal":"^1.1.0","markdown-it-abbr":"^1.0.4","metalsmith":"^2.4.2","mocha":"^9.2.2"},"scripts":{"test":"mocha"},"gitHead":"66a733be7d83f81d13e4526a1137b05cf2dcfaf9","bugs":{"url":"https://github.com/attentif/metalsmith-markdownit/issues"},"homepage":"https://github.com/attentif/metalsmith-markdownit#readme","_id":"@attentif/metalsmith-markdownit@0.6.2","_nodeVersion":"16.14.2","_npmVersion":"8.5.0","dist":{"integrity":"sha512-DxiZIU9D7PnBKREecRWFfnfYaeVSWmeksceMMOm8lw+m5iRwobe4XnHDvDrsO5hB7n5/Q1LX48GEvhmCL3FVOg==","shasum":"6b23817fb287507816662aa60faca15109686893","tarball":"https://registry.npmjs.org/@attentif/metalsmith-markdownit/-/metalsmith-markdownit-0.6.2.tgz","fileCount":35,"unpackedSize":15643,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEX4K2B9HeoMZHh/d5VqAw0SC642SBuS61VYt9Ke5r2hAiEApE1asr6IcFCLSDemxHm8iKWeOj2M0vmM6FgdQdLCVCY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiVHlHACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqcEQ/8CSYaPbX6t0kGyBwYb86TZ25KXEGZELsLOCzBn0EmZG7xfbmR\r\n34/SeOxt1xi+NEaPPlRO0pvgxqH34C9prvV2veVAclQTf40MpdJXutItsKGW\r\nUJzvqPgNCJLVbVcEaN5tdqjCvLfipQYPZBDgXx+opTqhm+C+UppmabOLq0oI\r\nMeuxSrbH5dnhVHd6nulQXwJoidbyhukkjD995aUChkxvDe7ZIsOz57Zel21c\r\nv9Aw0Ah+mqQoS83VGtV1Y/ipSbyIC62bWOxaGVs+peGWSusnR8KOqwN5fphO\r\nxo8U8VYIdoElqyUYtGIxHzkf6OVa5mOtA6M74NdpKkKMRrDNoCr+oeQfbV9B\r\nfrendp3PldbhQVmoXfijxB3u9DR2wKz8FMmT02GAH0hzVnfoSLCSPPvdSAkj\r\nPBgPGP2Adt2spp3jwMx22z0xwLqQUT6ZFklZ6Apzat1vCajbKr90ExJqq/6r\r\nX6GsiXYc1Ygp8S5Uc1Vq4liP5ycIURzoVZBrljFUnrXiXCLUJc5iLTFWD8YS\r\nBB7lBPlRE+t3ToEk2rROAk1+htFGx+pn1c2bdT4JbDJkt9bx6AR1ms90zHGW\r\nZGVCDSCcoouzPpXHiXL23qMiwkplAELT/qPh6kGzUulBUHKRGk7yjib//9oe\r\nF4gGLgt/+5jNZc37abN1KvrWAJFMRfJtQzk=\r\n=NSxI\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"sgoumaz","email":"simon@attentif.ch"},"directories":{},"maintainers":[{"name":"sgoumaz","email":"simon@attentif.ch"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/metalsmith-markdownit_0.6.2_1649703239249_0.5994384931373733"},"_hasShrinkwrap":false},"0.6.3":{"name":"@attentif/metalsmith-markdownit","description":"A Metalsmith plugin to convert markdown files.","repository":{"type":"git","url":"git://github.com/attentif/metalsmith-markdownit.git"},"version":"0.6.3","license":"MIT","main":"lib/index.js","dependencies":{"debug":"^4.3.4","markdown-it":"^13.0.1","minimatch":"^5.1.1"},"devDependencies":{"assert-dir-equal":"^1.1.0","markdown-it-abbr":"^1.0.4","metalsmith":"^2.5.1","mocha":"^10.1.0"},"scripts":{"test":"mocha"},"gitHead":"708255dafc6d49dba8e39abe61e30c85c7a0fa95","bugs":{"url":"https://github.com/attentif/metalsmith-markdownit/issues"},"homepage":"https://github.com/attentif/metalsmith-markdownit#readme","_id":"@attentif/metalsmith-markdownit@0.6.3","_nodeVersion":"16.18.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-I8usMkTkCJDl5LmL1xrpWUXvT9iQs4QiBQULHAyBqSOY3WkEGCvPIweiQ4BPLNCdWqpqTWPzLe+lzOmIZUurNg==","shasum":"8d421274026e55df9fb7d05add8078c43749ee82","tarball":"https://registry.npmjs.org/@attentif/metalsmith-markdownit/-/metalsmith-markdownit-0.6.3.tgz","fileCount":35,"unpackedSize":15644,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDW8cp/E8xBVlodSbsV9r5oGZOpxcL1+MDm3UXWAwfCHAiEA37xhbb2dFCQ0MZ7diKPtDDpCQFSfIKLuH4G5FEC2VqI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjkyqDACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrRtA//V7WWPrw0xPp455HXPWS8vdV755nr3x/kgxi2OoiF6+WdkLrP\r\n5vTzELGW2eL0xlaXUgDB2j2B8KK9XkyUJi5MqLdGl8G1CXfn6Wq1lrRhXO7w\r\nvmiEYyH7jDOgTST1bVTWeabjfCdTgU5MAlSmM1lnbVET72HdKZo7jYNUt4jA\r\nOQs4fFKwLbiF67qyKPz5DWvCPxOd7LSBRUqoqWaGm4/uEa/QOUA4dHlz/71e\r\nvKWy+XubcqjXeNdNd4skVRyuwpil9q5SbfCz/jQmh2NzWrWCUCWPdMk2QZSl\r\nkY6Vh1obiquC/ENUKIgZf3qOVjikr+/eqLT9MVWvCooJuAX4tc0FFruGpI7F\r\n0fUl4bAFGCcYbC7m/jk0xXdZdyWv1unL+cagT2cMZKUQsAoDHT5642EkNmh6\r\ndY826EZiNd2Gg2vUlOSeLeVWFAZnr8dK2q1fQhFs4Pug4vWcuGLow4yltd8m\r\nFxz9qwuG5vTN7P/L3RypXQOKJK6ys5suSMETj9cbFq5mLLylvuUrGirQIW5P\r\noA5NKOSpqPTXnpfSbVDYx+e/hftwRMTBgbzHE0cf0bpR/imZEYydbemeIdP4\r\nMDXoxx7K/fUcklShNjYy0OXN1DhrndtriWxGwiAEmLI/qtiAeFGrK7CAv/34\r\nZx7twFY4wirfWKEgUsORL0lRNvAQBI/B4uA=\r\n=WQ0C\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"sgoumaz","email":"simon@attentif.ch"},"directories":{},"maintainers":[{"name":"sgoumaz","email":"simon@attentif.ch"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/metalsmith-markdownit_0.6.3_1670589059629_0.0821553989861632"},"_hasShrinkwrap":false}},"time":{"created":"2021-02-03T18:57:53.161Z","0.6.0":"2021-02-03T18:57:53.478Z","modified":"2022-12-09T12:30:59.888Z","0.6.1":"2021-02-04T08:57:37.723Z","0.6.2":"2022-04-11T18:53:59.406Z","0.6.3":"2022-12-09T12:30:59.769Z"},"maintainers":[{"name":"sgoumaz","email":"simon@attentif.ch"}],"description":"A Metalsmith plugin to convert markdown files.","homepage":"https://github.com/attentif/metalsmith-markdownit#readme","repository":{"type":"git","url":"git://github.com/attentif/metalsmith-markdownit.git"},"bugs":{"url":"https://github.com/attentif/metalsmith-markdownit/issues"},"license":"MIT","readme":"[![Build Status](https://travis-ci.org/attentif/metalsmith-markdownit.svg?branch=master)](https://travis-ci.org/attentif/metalsmith-markdownit)\n\n# metalsmith-markdownit\n\nA Metalsmith plugin to convert markdown files using [markdown-it](https://github.com/markdown-it/markdown-it) library.\n\nThis plugin is not one to one replacement for metalsmith-markdown. There are slight differences in how the underlying libraries behave, but I find I get better results with markdown-it. Markdown-it, however, does not support all GFM features.\n\n## Installation\n\n    $ npm install metalsmith-markdownit\n\n## CLI Usage\n\nInstall via npm and then add the `metalsmith-markdownit` key to your `metalsmith.json` plugins with any [markdown-it](https://github.com/markdown-it/markdown-it) options you want, like so:\n\n```json\n{\n  \"plugins\": {\n    \"metalsmith-markdownit\": {\n      \"typographer\": true,\n      \"html\": true\n    }\n  }\n}\n```\n\n## Javascript Usage\n\nPass `options` to the markdown plugin and pass it to Metalsmith with the `use` method:\n\n```js\nvar markdown = require('metalsmith-markdownit');\n\nmetalsmith.use(markdown({\n  typographer: true,\n  html: true\n}));\n```\n\nYou can also pass a markdown-it preset to the plugin:\n\n```js\nvar markdown = require('metalsmith-markdownit');\n\nmetalsmith.use(markdown('default', {\n  typographer: true,\n  html: true\n}));\n```\n\nIf you want to control plugin behaviour, you can set options under the `plugin` key of the `options` object (these options are not passed to Markdown It):\n\n```js\nmetalsmith.use(markdown('default', {\n  typographer: true,\n  html: true,\n  plugin: {\n    // options.plugin.pattern (string) - glob pattern. Defaults to '**/*@(md|markdown)'\n    pattern: '**/*.html',  \n    // options.plugin.fields (string|Array) - field or list of fields to parse with Markdown-It. Defaults to 'contents'\n    fields: ['contents', 'excerpt']  \n    // options.plugin.extension (string) - the file extension for parsed files. Defaults to 'html'\n    extension: 'htm'\n  }\n}));\n```\n\nIf you need access to markdown-it directly to enable features or use plugins, you can access the parser directly:\n\n```js\nvar markdown = require('metalsmith-markdownit');\n\nvar md = markdown('zero', { html: true });\nmd.parser.enable(['emphasis', 'html_block', 'html_tag']);\n\nmetalsmith.use(md);\n```\n\nThe parser's `enable`, `disable`, `use` and `set` methods are proxied on the metalsmith plugin, so you may access them like so:\n\n```js\nvar markdown = require('metalsmith-markdownit');\n\nmetalsmith.use(markdown('zero', {html: true}).enable('emphasis', 'html_block', 'html_tag'))\n```\n\nYou may provide a function to set the parser & renderer's environment on a per-page basis, should you need to:\n\n```js\nvar markdown = require('metalsmith-markdownit');\n\nmetalsmith.use(markdown('default').env(function(page){ return page; }))\n```\n\n## License\n\n  MIT\n","readmeFilename":"Readme.md"}