Package detail

linkifier

kikobeats9MIT1.0.2

It converts HTML headers (h1, h2, h3, h4, h5 & h6) into links.

html, link, linkifier, markdown

readme

linkifier


linkifier

Last version Build Status Dependency status Dev Dependencies Status NPM Status Donate

It converts HTML tags (like h1, h2, h3, h4, h5 & h6) into links.

Install

$ npm install linkifier --save

Usage

Vanilla

linkifier(document.getElementsByTagName('h2'))

jQuery

$('h2').linkifier()

API

linkifier(<elements>, [opts])

element

Required
Type: object

Collection of Node Elements to wrap into links.

opts

class

Type: string
Default: 'deep-link'

A class to attach with the link wrapper.

License

MIT © Kiko Beats

changelog

1.0.2 (2016-09-02)

  • Add defaults docs (9c66786)
  • bundle-collapser for save extra size (6003a1a)
  • Rebuild jquery version using browserify (600c7f3)

1.0.1 (2016-09-02)

1.0.0 (2016-06-25)

1.0.0 (2016-05-07)