peerigon/markdown-loader

markdown loader for webpack

372

stars

96

commits

JavaScript

primary language

Jul 27, 2024

updated

html
javascript
loader
markdown
marked
webpack
webpack-loader

README

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

Contributors

meaku

49 commits

jhnns

26 commits

ethancrook99

4 commits

qiuyuntao

3 commits

peerigon/markdown-loader

markdown loader for webpack

372

stars

96

commits

JavaScript

primary language

Jul 27, 2024

updated

html
javascript
loader
markdown
marked
webpack
webpack-loader

README

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

Contributors

meaku

49 commits

jhnns

26 commits

ethancrook99

4 commits

qiuyuntao

3 commits

Languages

JavaScript

98.5%

Shell

1.5%