A Metalsmith plugin that extracts headings from HTML files and attaches them to the file's metadata.
JavaScript Makefile HTML
Latest commit 0cb3560 Jul 12, 2015 @ianstormtaylor ianstormtaylor 0.1.0
* add `tag` metadata to headings
Permalink
Failed to load latest commit information.
lib add `tag` attribute to headings Jun 4, 2014
test add `tag` attribute to headings Jun 4, 2014
.gitignore first commit Apr 2, 2014
History.md 0.1.0 Jul 11, 2015
Makefile first commit Apr 2, 2014
Readme.md first commit Apr 2, 2014
package.json 0.1.0 Jul 11, 2015

Readme.md

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