metalsmith-headings

v0.2.0
A Metalsmith plugin that extracts headings from HTML files and attaches them to the file's metadata.

metalsmith-headings

A Metalsmith plugin that extracts headings from HTML files and attaches them to the file's metadata.

Installation

$ npm install metalsmith-headings

Example

var Metalsmith = require('metalsmith');
var headings = require('metalsmith-headings');

Metalsmith(__dirname)
  .use(headings('h2'))
  .build();

License

MIT

npm i metalsmith-headings

Metadata

  • MIT
  • Whatever
  • Unknown
  • released 7/27/2017

Downloads