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

https://github.com/bartveneman/anchor

Add anchors to all page headings
https://github.com/bartveneman/anchor

Last synced: over 1 year ago
JSON representation

Add anchors to all page headings

Awesome Lists containing this project

README

          

# Anchor
[![Code Climate](https://codeclimate.com/github/bartveneman/anchor/badges/gpa.svg)](https://codeclimate.com/github/bartveneman/anchor)

Add anchors to all page headings, GitHub style.

## Example
`

My super Awesome heading

` will be converted to:

````html


§
My super Awesome heading


````

## Demo
See the Pen [Anchor](http://codepen.io/bartveneman/pen/nACDH/) on [CodePen](http://codepen.io).

## Credits
Because it's nice to give attribution.

- [Converting plain text to url friendly slug](http://stackoverflow.com/questions/1053902/how-to-convert-a-title-to-a-url-slug-in-jquery)
- [Converting a Nodelist to an array](http://toddmotto.com/a-comprehensive-dive-into-nodelists-arrays-converting-nodelists-and-understanding-the-dom/)