0.1.0 • Published 7 years ago
markdown-heading-loader v0.1.0
markdown-heading-loader
Webpack loader which return first markdown heading with depth 1.
For example, in the next document:
Webpack
==
Loaders
--
### Api
Loaders are awesome
String Webpack
is heading with depth 1.
Usage
Add rule to your webpack configuration:
{
test: /\.md$/,
loader: `markdown-heading-loader`
}
Or use direct within import:
import heading from '!markdown-heading-loader!./article.md'
Options
- commonmark Use common markdown features (default: false)
Author and license
Morulus vladimirmorulus@gmail.com
Under MIT license, 2018
0.1.0
7 years ago