Skip to content

peerigon/markdown-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

e18a706 · Jan 28, 2022

History

99 Commits
Jan 28, 2022
Jan 27, 2022
Jan 27, 2022
Jan 27, 2022
Jan 27, 2022
Jan 27, 2022
Jan 27, 2022
Jan 27, 2022
Jan 27, 2022
Jan 27, 2022
Nov 11, 2019
Jan 27, 2022
Jan 27, 2022
Jan 27, 2022
Jan 27, 2022

Repository files navigation

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