isocket-macula-autolink
v1.0.0
Published
automatically link and ellipsize URLs in the DOM
Downloads
4
Maintainers
Readme
automatically link and ellipsize URLs in the DOM
This is just an AMD jQuery plugin wrapper of autolink-js
Getting Started
Install the module with Bower:
bower install isocket-macula-autolink --save
Usage
define([
"jquery",
"../lib/isocket-macula-autolink" // no exports
], function($) {
$el = $('<p>hello http://google.com</p>')
$el.autolink()
// $el.html() is now "<p>hello <a href=http://google.com>http://google.com</a></p>"
})
Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.
Testing
Run just the unit tests (fastest)
grunt