markdownloader
v1.0.6
Published
markdown loader for webpack
Downloads
15
Readme
markdownloader
Install
npm install [email protected] --save-dev
npm install [email protected] --save-dev
npm install markdownloader --save-dev
Usage
webpack.config.js
const markdownLoader = require('markdownloader').renderer;
module.exports={
...
module: {
[{
test: /\.md$/,
loader: 'html!markdown'
},
...
]
},
markdownLoader
}
Exmaple
import { Markdown } from 'markdownloader';
import 'markdownloader/less/highlight.less'
<Markdown>
{require('./README.md')}
</Markdown>