An open API service indexing awesome lists of open source software.

https://github.com/metalsmith/headings

A Metalsmith plugin that extracts headings from HTML files and attaches them to the file's metadata.
https://github.com/metalsmith/headings

headings html metalsmith metalsmith-plugin

Last synced: 2 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# 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

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

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

## License

MIT