{"library":"markdown-loader","title":"markdown-loader","description":"webpack loader that converts Markdown files into HTML using the marked library. v8.0.0 (Jan 2022) requires Node >=12.22.9 and webpack ^5.0.0. Released under semantic-release with monthly downloads ~1M. Typically used together with html-loader to handle the HTML output. Alternatives include markdown-to-html-loader or custom markdown handling, but this is a simple, focused loader that directly wraps marked.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install markdown-loader"],"cli":null},"imports":["use: [{ loader: 'html-loader' }, { loader: 'markdown-loader', options: {} }]","module.exports = { module: { rules: [ { test: /\\.md$/, use: [ ... ] } ] } }","{ loader: 'markdown-loader', options: { headerIds: false } }"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// webpack.config.js\nconst config = {\n  module: {\n    rules: [\n      {\n        test: /\\.md$/,\n        use: [\n          { loader: 'html-loader' },\n          {\n            loader: 'markdown-loader',\n            options: {\n              // Marked options: https://marked.js.org/using_advanced#options\n              headerIds: false,\n              gfm: true\n            }\n          }\n        ]\n      }\n    ]\n  }\n};\nexport default config;","lang":"javascript","description":"Shows minimal webpack config to load .md files through markdown-loader and html-loader.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}