22
33[ ![ npm version] ( https://badge.fury.io/js/linkifyjs.svg )] ( https://www.npmjs.com/package/linkifyjs )
44[ ![ CI] ( https://github.com/Hypercontext/linkifyjs/actions/workflows/ci.yml/badge.svg )] ( https://github.com/Hypercontext/linkifyjs/actions/workflows/ci.yml )
5- [ ![ BrowserStack Status] ( https://automate.browserstack.com/badge.svg?badge_key=alN1cUFSYVI3Yitudjh6NkJuNURhVy9sRHQ0RXE2L0t2RWpDY3lHM3Rtbz0tLVZScU8rRHAyMWRoYjVVY000elJybHc9PQ ==--35ad6d7d5981f5bc0efdb7b6ba78972d8174e7e5 )] ( https://automate.browserstack.com/public-build/alN1cUFSYVI3Yitudjh6NkJuNURhVy9sRHQ0RXE2L0t2RWpDY3lHM3Rtbz0tLVZScU8rRHAyMWRoYjVVY000elJybHc9PQ ==--35ad6d7d5981f5bc0efdb7b6ba78972d8174e7e5 )
5+ [ ![ BrowserStack Status] ( https://automate.browserstack.com/badge.svg?badge_key=ZVZXNFhhQ044a01nQStVeWJXSng1b01MTWFpZlZRZVg1WnAvdE9aVE9LVT0tLWZpekx6ZHUrZ2E0dDRHMDZRMnJNQlE9PQ ==--4d91db279fbd0475f8d8e4b221b5a4c1e0c6a76e )] ( https://automate.browserstack.com/public-build/ZVZXNFhhQ044a01nQStVeWJXSng1b01MTWFpZlZRZVg1WnAvdE9aVE9LVT0tLWZpekx6ZHUrZ2E0dDRHMDZRMnJNQlE9PQ ==--4d91db279fbd0475f8d8e4b221b5a4c1e0c6a76e )
66[ ![ Coverage Status] ( https://coveralls.io/repos/github/Hypercontext/linkifyjs/badge.svg?branch=main )] ( https://coveralls.io/github/Hypercontext/linkifyjs?branch=main )
77
88Linkify is a JavaScript plugin. Use Linkify to find links in plain-text and
99convert them to HTML < ; a> ; tags. It automatically highlights URLs,
1010#hashtags, @mentions and more.
1111
12- __ Jump to __
12+ ** Jump to **
1313
1414- [ Features] ( #features )
1515- [ Demo] ( #demo )
@@ -23,16 +23,17 @@ __Jump to__
2323
2424## Features
2525
26- * Detect URLs and email addresses
27- * #hashtag, @mention and #-ticket plugins
28- * React and jQuery support
29- * Multi-language and emoji support
30- * Custom link plugins
31- * Fast, accurate and small footprint (~ 20kB minified, ~ 11kB gzipped)
32- * 99% test coverage
33- * Compatible with all modern browsers (Internet Explorer 11 and up)
26+ - Detect URLs and email addresses
27+ - #hashtag, @mention and #-ticket plugins
28+ - React and jQuery support
29+ - Multi-language and emoji support
30+ - Custom link plugins
31+ - Fast, accurate and small footprint (~ 20kB minified, ~ 11kB gzipped)
32+ - 99% test coverage
33+ - Compatible with all modern browsers (Internet Explorer 11 and up)
3434
3535## Demo
36+
3637[ Launch demo] ( https://linkify.js.org/#demo )
3738
3839## Installation and Usage
@@ -78,7 +79,7 @@ linkifyHtml('Any links to github.com here? If not, contact
[email protected] ', op
7879Returns the following string:
7980
8081``` js
81- ' Any links to <a href="https://github.com">github.com</a> here? If not, contact <a href="mailto:[email protected] ">[email protected] </a>' 82+ ' Any links to <a href="https://github.com">github.com</a> here? If not, contact <a href="mailto:[email protected] ">[email protected] </a>' ; 8283```
8384
8485To modify the resulting links with a target attribute, class name and more, [ use
@@ -100,17 +101,17 @@ Returns the following array
100101 isLink: true ,
101102 href: ' http://github.com' ,
102103 start: 13 ,
103- end: 23
104+ end: 23 ,
104105 },
105106 {
106107 type: ' email' ,
107108108109 isLink: true ,
109110110111 start: 46 ,
111- end: 62
112- }
113- ]
112+ end: 62 ,
113+ },
114+ ];
114115```
115116
116117#### Example 3: Check whether a string is a valid link:
130131
131132### Usage with React, jQuery or the browser DOM
132133
133- [ Read the interface documentation] ( https://linkify.js.org/docs/interfaces.html ) to learn how to use linkify when working with a specific JavaScript environment such as React.
134+ [ Read the interface documentation] ( https://linkify.js.org/docs/interfaces.html ) to learn how to use linkify when working with a specific JavaScript environment such as React.
134135
135136### Plugins for @mentions , #hashtags and more
136137
0 commit comments