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
- Host: GitHub
- URL: https://github.com/bartveneman/anchor
- Owner: bartveneman
- License: mit
- Created: 2014-05-29T09:18:00.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2017-02-04T19:15:05.000Z (over 9 years ago)
- Last Synced: 2025-02-04T22:03:16.982Z (over 1 year ago)
- Language: JavaScript
- Homepage: http://codepen.io/bartveneman/pen/nACDH/
- Size: 6.84 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Anchor
[](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/)