markdown-loader for webpack using marked.
npm install markdown-loader
Minimal requirements:
- Node >=12.22.9
- webpack >=5.0.0
Since marked's output is HTML, it's best served in conjunction with the html-loader.
// webpack.config.jsexportdefault{module: {rules: [{test: /\.md$/,use: [{loader: "html-loader",},{loader: "markdown-loader",options: {// Pass options to marked// See https://marked.js.org/using_advanced#options},},],},],},};