{"_id":"@blunck/next-md","_rev":"1-f73dba76041882aead48e85d053dff58","name":"@blunck/next-md","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@blunck/next-md","version":"1.0.0","description":"Import markdown files in your Next.js project","main":"index.js","repository":{"type":"git","url":"git+https://github.com/alexblunck/next-md.git"},"keywords":["nextjs","markdown-loader","markdown"],"author":{"name":"Alexander Blunck"},"license":"MIT","bugs":{"url":"https://github.com/alexblunck/next-md/issues"},"homepage":"https://github.com/alexblunck/next-md#readme","dependencies":{"html-loader":"0.5.5","markdown-loader":"4.0.0"},"gitHead":"8786bf11d3fb472653772922fa7c3ebcc85e8527","_id":"@blunck/next-md@1.0.0","_npmVersion":"6.4.1","_nodeVersion":"11.0.0","_npmUser":{"name":"alexblunck","email":"alex@blunck.co"},"dist":{"integrity":"sha512-7i8DoD3cXmRJQY95+VSv2yoZXMNvlI0X0diSpb7FOO6MFxw/YaPJIkTiVProUQpveORA66apW75H/YeISw7Dug==","shasum":"d23297b0cec417d0681e1cdc4a189296c2a369d7","tarball":"https://registry.npmjs.org/@blunck/next-md/-/next-md-1.0.0.tgz","fileCount":4,"unpackedSize":3008,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb4Y7BCRA9TVsSAnZWagAATyQQAID9ACY0rJKuBaL/rnVx\n4xkvUS1q0o3GIftje1kuJRQMjQ5kV9t5IB+IPqB1vA5/CIJWg5jiC4vuEgBJ\nPU3aSATzzCOjwSFWl1bZ+zUOsIEmV0c9HZmEn6Q5J8zeMpu4uEiCnLjBbIsM\nns7+fLR2QP8ZhVozNajssWs42hgvdrykPia/CY8er4CZZWapgCoA/h1E7IfZ\n3fn9Czi1HBMmLAPiRLvvSnWsLzG1D+oHNKjiwUE2rXkct5RX9OzLVqUyICzV\ndJdj+c31KfPz6KFzAYR5ZNOdc8S3kGDNmD/o39yJFo9yq9lDzYf1+HuUSxUt\nStffGyjEJHyFrPH7yoZ7F6GdAlJ6mrRhWQtHWkJvImxX1V3LhGMKg1fVm4Qd\nmrt0NQ0XX3Mc1vUMcGV4L35ygEmgOlISGvlivyfm3QQ3ar3gv4T169ySMhh/\nDEmJng+yqxuqywpeUsJfhDVm6vqfHXXU2qV8uUBJ74msjcRpUYcutpGUprYj\nlJrU184AZg5ZabDw/AKO9ObqHEFX3msd9VbsDFai+ylkAR14K3zSSWOVu4nC\nPgWEm+Sz0OlVyuKQXRjDh49xCe78NRvNNJM+i77fbbvRHKBVQeK6ZoHe+RRD\n/r7D2QTFi0OffH54HuR9tRUefYBzjICeRUb5Vr1gvd/QjLyv1SQad+3EGYaM\nbYUV\r\n=pwTt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGO1XV5BlG75WaPDDY1BVu8qMWsGvuF0IyEsQNtfmoZlAiAuxdvAKJuocT4f7in9x1nTg1J2kniPnVbNb7n8CzFV9Q=="}]},"maintainers":[{"name":"alexblunck","email":"alex@blunck.co"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/next-md_1.0.0_1541508800403_0.5892295041989895"},"_hasShrinkwrap":false}},"time":{"created":"2018-11-06T12:53:20.256Z","1.0.0":"2018-11-06T12:53:20.542Z","modified":"2022-04-04T19:50:32.915Z"},"maintainers":[{"name":"alexblunck","email":"alex@blunck.co"}],"description":"Import markdown files in your Next.js project","homepage":"https://github.com/alexblunck/next-md#readme","keywords":["nextjs","markdown-loader","markdown"],"repository":{"type":"git","url":"git+https://github.com/alexblunck/next-md.git"},"author":{"name":"Alexander Blunck"},"bugs":{"url":"https://github.com/alexblunck/next-md/issues"},"license":"MIT","readme":"# Next.js + Markdown\n\nImport markdown files in your Next.js project\n\n## Installation\n\n```\nnpm install --save @blunck/next-md\n```\n\n## Usage\n\nCreate a `next.config.js` in your project\n\n```js\n// next.config.js\nconst withMarkdown = require('@blunck/next-md')()\nmodule.exports = withMarkdown()\n```\n\nYou can now import parsed strings from `.md` files\n\n```js\nimport foo from './foo.md'\n\nexport default () => <div dangerouslySetInnerHTML={{ __html: foo }} />\n```\n\n### With `markdown-loader` and `html-loader` options\n\nOptionally you can provide [Marked.js](https://marked.js.org/#/USING_ADVANCED.md#options) and [html-loader](https://github.com/webpack-contrib/html-loader) options\n\n```js\n// next.config.js\nconst withMarkdown = require('@blunck/next-md')({\n    markdownLoaderOptions: {\n        gfm: true\n    },\n    htmlLoaderOptions: {\n        minimize: true,\n        conservativeCollapse: false\n    }\n})\nmodule.exports = withMarkdown()\n```\n\n### Configuring Next.js\n\nOptionally you can add your custom Next.js configuration as parameter\n\n```js\n// next.config.js\nconst withMarkdown = require('@blunck/next-md')()\nmodule.exports = withMarkdown({\n    webpack(config, options) {\n        return config\n    }\n})\n```\n","readmeFilename":"README.md"}