Home

Awesome

Markdown (marked + highlight.js) loader for webpack

npm travis climate gratipay

Install

$ npm i -S markdown-highlight-loader

Usage

/*
include highlight.js theme styles, for example in "vendor" chunk:
entry: {
    vendor: [
        …
        'highlight.js/styles/railscasts.css'
    ],
    …
}
*/
module: {
    loaders: [ {
        test: /\.md$/,
        loader: 'html!markdown-highlight'
        // loader: 'html!markdown-highlight?+breaks&-smartLists'
    } ]
}

Documentation: Using loaders.

License

WTFPL