Skip to content

morulus/markdown-heading-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Load markdown primary heading

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published