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.
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'
- commonmark Use common markdown features (default: false)
Morulus vladimirmorulus@gmail.com
Under MIT license, 2018