Releases: gregjacobs/Autolinker.js
Releases · gregjacobs/Autolinker.js
v1.2.2
v1.2.1
Move gulp-header dependency from dependencies to devDependencies
v1.2.0
v1.1.1
v1.1.0
- Add
stripTrailingSlashoption to decided whether or not to remove a trailing slash from URL matches - Add individual
schemeandwwwoptions tostripPrefixto decide to strip the scheme, the 'www', or both from URL matches
v1.0.0
Long awaited 1.0 release which adds the mention feature to replace the twitter option, and change the replaceFn to be passed only one argument (the Match object).
Breaking Changes from 0.x -> 1.x
twitteroption removed, replaced withmention(which accepts'twitter'
and'instagram'values)- Matching mentions (previously the
twitteroption) now defaults to
being turned off. Previously, Twitter handle matching was on by
default. replaceFnoption now called with just one argument: theMatch
object (previously was called with two arguments:autolinkerand
match)- (Used inside the
replaceFn)TwitterMatchreplaced with
MentionMatch, andMentionMatch.getType()now returns'mention'
instead of'twitter' - (Used inside the
replaceFn)TwitterMatch.getTwitterHandle()->
MentionMatch.getMention()
v0.28.1
v0.28.0
v0.27.0
- Fixed an issue where an input string that contained a
<that didn't begin an HTML tag could cause Chrome to hang in an infinite loop in certain situations