markdown-heading-loader

0.1.0 • Public • Published

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

Package Sidebar

Install

npm i markdown-heading-loader

Weekly Downloads

0

Version

0.1.0

License

MIT

Unpacked Size

3.09 kB

Total Files

4

Last publish

Collaborators

  • morulus