1.0.1 • Published 4 years ago

prism-markdown-loader v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

prism-markdown-loader

prism-markdown-loader for webpack

Installation

npm install prism-markdown-loader

Usage

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

Webpack

{
    module: {
        rules: [{
                test: /\.md$/,
                use: [
                    {
                        loader: "html-loader"
                    },
                    {
                        loader: "prism-markdown-loader",
                        options: {
                            /* your options here */
                        }
                    }
                ]
            }]
    }
}

Options

Pass your markdown-it options as shown above.

License

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