markdown-heading-loader
v0.1.0
Published
Load markdown document primary heading
Downloads
2
Maintainers
Readme
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 [email protected]
Under MIT license, 2018