-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Enhancements and deprecations for options hash Features * Added ability to override default options via linkify.options.defaults * Options that take functions with value and type arguments can now be specified as objects, where each key is the target type. For example: ``` 'github.com is #rad, please email nick@example.com'.linkify({ formatHref: { email: (mailto) => `${mailto}?subject=Hello`, hashtag: (hashtag) => `https://twitter.com/hashtag/${hashtag.substr(1)}` } }); ``` Bug fixes * Allow disabling linkClass (by using default options) - Fixes #144 Deprecations * Deprecated `linkClass` option. Use `className` instead * Deprecated `linkAttributes` option. Use `attributes` instead. * The `linkified` default class name for links will no longer be provided in a future release Breaking Changes * Fully removed deprecated `newLine` option * Unit tests for linkify options utilities Including improvements and fixes for QUnit tests * Additional refactorings and updates to get IE to work Note to self: IE8 is the devil
- Loading branch information
Nick Frasser
authored
Aug 16, 2016
1 parent
d659054
commit 2185b8a
Showing
17 changed files
with
382 additions
and
239 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.