New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

markdown-loader

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

markdown-loader

markdown-loader for webpack

  • 0.1.7
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
59K
increased by3.21%
Maintainers
1
Weekly downloads
 
Created
Source

markdown-loader

markdown-loader for webpack using marked.

Setup

npm status

dependencies devDependency Status

Usage

var html = require("html!markdown!./README.md");

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

{
    module: {
        loaders: {
            { test: /\.md$/, loader: "html!markdown" },
        ]
    }
}

Options

marked-options are passed via query params:

{
    module: {
        loaders: {
            { test: /\.md$/, loader: "html!markdown?gfm=false" },
        ]
    }
}

Custom renderer

In order to specify custom renderers, simply set the markdownLoader.renderer-option on your webpack options. You can also change the options' key with a query parameter: "markdown?config=markdownLoaderCustomConfig".

// webpack.config.js

var marked = require("marked");
var renderer = new marked.Renderer();

module.exports = {
    ...
    markdownLoader: {
        renderer: renderer
    }
};

License

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

Keywords

FAQs

Package last updated on 04 Sep 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc