2.0.8 • Published 6 years ago
remarkdown-loader v2.0.8
remarkdown-loader
With remarkdown-loader, you can render react element in markdown convenient!
install
$ npm i -D remarkdown-loader
Usage
webpack.config.js
'module': {
'loaders': [{
'loaders': ['babel', 'remarkdown'],
'test': /\.md$/,
}]
}
So you can render react element in markdown like this:
support babel-plugin-code
With babel-plugin-code, you can render the demo and demo source code toghether.
'module': {
'loaders': [{
// using remarkdown-doc to render react element
'test': /\.md$/,
'loader': 'babel!remarkdown?Demo=remarkdown-doc',
}, {
// using babel-plugin-code
test: /\.js$/,
loader: 'babel',
query: {
plugins: [['code']],
},
}],
}
You can set param Demo to remarkdown-laoder. In this example, it use remarkdown-doc as custom Demo renderer. The result is as below.
License
Copyright (c) 2015-2016 Recharts Group
2.0.8
6 years ago
2.0.7
6 years ago
2.0.6
6 years ago
2.0.5
7 years ago
2.0.4
7 years ago
2.0.3
7 years ago
2.0.2
7 years ago
2.0.1
7 years ago
2.0.0
7 years ago
1.1.7
8 years ago
1.1.6
8 years ago
1.1.5
8 years ago
1.1.4
8 years ago
1.1.3
8 years ago
1.1.2
8 years ago
1.1.1
8 years ago
1.1.0
8 years ago
1.0.2
8 years ago
1.0.1
8 years ago
1.0.0
8 years ago