1. markdown-loader
markdown-loader for webpack
markdown-loader
Package: markdown-loader
Created by: peerigon
Last modified: Sun, 19 Jun 2022 16:10:18 GMT
Version: 8.0.0
License: MIT
Downloads: 333,730
Repository: https://github.com/peerigon/markdown-loader

Install

npm install markdown-loader
yarn add markdown-loader

markdown-loader

markdown-loader for webpack using marked.

Version on NPM
Semantically released
Monthly downloads on NPM

License

Installation

npm install markdown-loader

Minimal requirements:

  • Node >=12.22.9
  • webpack >=5.0.0

Usage

Since marked's output is HTML, it's best served in conjunction with the html-loader.

 // webpack.config.js
export default {
  module: {
    rules: [
      {
        test: /\.md$/,
        use: [
          {
            loader: "html-loader",
          },
          {
            loader: "markdown-loader",
            options: {
              // Pass options to marked
              // See https://marked.js.org/using_advanced#options
            },
          },
        ],
      },
    ],
  },
};

License

MIT (http://www.opensource.org/licenses/mit-license.php)

Sponsors

Dependencies

RELATED POST

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin