Skip to content

Commit fb3ffea

Browse files
committed
Additional chores for v4.1.4
1 parent 92cd1ed commit fb3ffea

File tree

5 files changed

+29
-32
lines changed

5 files changed

+29
-32
lines changed

.editorconfig

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,6 @@ charset = utf-8
1111
trim_trailing_whitespace = true
1212
insert_final_newline = true
1313

14-
[*.yml]
15-
indent_style = space
16-
tab_width = 2
17-
18-
[*.md]
19-
indent_style = space
20-
tab_width = 2
21-
22-
[package.json]
14+
[*.yml,*.md,package.json]
2315
indent_style = space
2416
tab_width = 2

.nycrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extension": [".mjs"]
3+
}

.prettierrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"useTabs": true,
66
"overrides": [
77
{
8-
"files": ["*.json", "*.yml"],
8+
"files": ["*.json", "*.yml", "*.md"],
99
"options": {
1010
"tabWidth": 2,
1111
"useTabs": false

CHANGELOG.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## v4.1.4
44

55
- Add support for full width middle dot `` in hashtag plugin
6+
- Development updates for newest Node.js versions
67

78
## v4.1.3
89

@@ -93,12 +94,12 @@
9394
- React, jQuery and Element interfaces moved to dedicated packages at `linkify-react`,`linkify-jquery` and `linkify-element` respectively:
9495
- Remove default `class="linkified"` from all discovered links. Opt back in by setting the `className` option:
9596
```js
96-
linkifyStr(str, { className: "linkified" });
97+
linkifyStr(str, { className: 'linkified' });
9798
```
9899
- Remove default `target="_blank"` attribute for discovered URLs. Opt back in by setting the `target` option:
99100
```js
100101
linkifyHtml(str, {
101-
target: (href, type) => type === "url" && "_blank",
102+
target: (href, type) => type === 'url' && '_blank',
102103
});
103104
```
104105
- React component: Remove outer `<span>` tag wrapper in favour of tag-less `React.Fragment` for React >=16. To opt back-in, set `tagName='span'`:
@@ -130,13 +131,13 @@
130131

131132
```js
132133
// Before
133-
import * as linkify from "linkifyjs";
134-
import hashtag from "linkifyjs/plugins/hashtag";
134+
import * as linkify from 'linkifyjs';
135+
import hashtag from 'linkifyjs/plugins/hashtag';
135136
hashtag(linkify);
136137

137138
// After
138-
import * as linkify from "linkifyjs";
139-
import "linkifyjs/plugins/hashtag";
139+
import * as linkify from 'linkifyjs';
140+
import 'linkifyjs/plugins/hashtag';
140141
```
141142

142143
## v2.1.9

README.md

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
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

88
Linkify is a JavaScript plugin. Use Linkify to find links in plain-text and
99
convert them to HTML &lt;a&gt; 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
7879
Returns 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

8485
To 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',
107108
108109
isLink: true,
109110
href: 'mailto:[email protected]',
110111
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:
@@ -130,7 +131,7 @@ linkify.test('[email protected]', 'email'); // true
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

Comments
 (0)