@@ -133,9 +133,10 @@ providing an Object as the second parameter to [Autolinker.link()](http://gregja
133
133
- [ twitter] ( http://gregjacobs.github.io/Autolinker.js/docs/#!/api/Autolinker-cfg-twitter ) : Boolean<br />
134
134
` true ` to have Twitter handles auto-linked, ` false ` to skip auto-linking of
135
135
Twitter handles. Defaults to ` true ` .<br /><br />
136
- - [ hashtag] ( http://gregjacobs.github.io/Autolinker.js/docs/#!/api/Autolinker-cfg-hashtag ) : Boolean<br />
137
- ` true ` to have hashtags auto-linked, ` false ` to skip auto-linking of
138
- hashtags. Defaults to ` false ` .<br /><br />
136
+ - [ hashtag] ( http://gregjacobs.github.io/Autolinker.js/docs/#!/api/Autolinker-cfg-hashtag ) : Boolean/String<br />
137
+ A string for the service name to have hashtags auto-linked to. Supported
138
+ values at this time are 'twitter' and 'facebook'. Pass ` false ` to skip
139
+ auto-linking of hashtags. Defaults to ` false ` .<br /><br />
139
140
- [ replaceFn] ( http://gregjacobs.github.io/Autolinker.js/docs/#!/api/Autolinker-cfg-replaceFn ) : Function<br />
140
141
A function to use to programmatically make replacements of matches in the
141
142
input string, one at a time. See the section
@@ -228,9 +229,9 @@ var linkedText = Autolinker.link( input, {
228
229
229
230
case ' phone' :
230
231
var phoneNumber = match .getPhoneNumber ();
231
- console .log ( twitterHandle );
232
+ console .log ( phoneNumber );
232
233
233
- return ' <a href="http://newplace.to.link.twitter.handles .to/">' + twitterHandle + ' </a>' ;
234
+ return ' <a href="http://newplace.to.link.phone.numbers .to/">' + phoneNumber + ' </a>' ;
234
235
235
236
case ' twitter' :
236
237
var twitterHandle = match .getTwitterHandle ();
0 commit comments