You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-6Lines changed: 3 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,16 +28,13 @@ So, this utility attempts to handle everything. It:
28
28
- Autolinks **URLs**, whether or not they start with the protocol (i.e. 'http://').
29
29
In other words, it will automatically link the text "google.com", as well as
30
30
"http://google.com". Will also autolink **IPv4 addresses**.
31
-
- Will autolink **email addresses**
32
-
- Will autolink **phone numbers**
33
-
- Will autolink **@mentions** (Twitter, Instagram, Soundcloud, TikTok, Youtube)
34
-
- Will autolink **#hashtags** (Twitter, Instagram, Facebook, TikTok, Youtube)
35
-
- Won't clobber URLs with #hash anchors by treating them as hashtags like some other libraries do. For example: `google.com/#anchor` is properly linked.
31
+
- Will autolink **email addresses**, **phone numbers**, **@mentions**, and **#hashtags**
32
+
- Won't clobber URLs with #hash anchors by treating them as hashtags (like some other libraries do). For example: `google.com/#anchor` is properly linked.
36
33
-**Will properly handle HTML input.** The utility will not overwrite an `href`
37
34
attribute inside anchor (`<a>`) tags or any other tag/attribute, and will not
38
35
accidentally wrap the inner text of `<a>`/`<script>`/`<style>` tags with a new
39
36
one (which would cause doubly-nested anchor tags, or mess with scripts)
40
-
- Will do all of this in `O(n)` (linear) time with low constant factors and without the possibility of RegExp [Catastrophic Backtracking](https://www.regular-expressions.info/catastrophic.html), making it extremely fast and unsusceptible to [DoS](https://en.wikipedia.org/wiki/Denial-of-service_attack) inputs.
37
+
- Will do all of this in **`O(n)`** (linear) time with low constant factors and without the possibility of RegExp [Catastrophic Backtracking](https://www.regular-expressions.info/catastrophic.html), making it extremely fast and unsusceptible to [DoS](https://en.wikipedia.org/wiki/Denial-of-service_attack) inputs.
0 commit comments