JavaScript plugin for finding links in plain-text and converting them to HTML <a> tags.
MIT License
Bot releases are hidden (Show)
Full Changelog: https://github.com/Hypercontext/linkifyjs/compare/v4.1.2...v4.1.3
Published by nfrasser 12 months ago
Full Changelog: https://github.com/Hypercontext/linkifyjs/compare/v4.1.1...v4.1.2
Published by nfrasser over 1 year ago
Full Changelog: https://github.com/Hypercontext/linkifyjs/compare/v4.1.0...v4.1.1
Published by nfrasser almost 2 years ago
Full Changelog: https://github.com/Hypercontext/linkifyjs/compare/v4.0.2...v4.1.0
Published by nfrasser about 2 years ago
Published by nfrasser about 2 years ago
Published by nfrasser about 2 years ago
linkifyjs/string
, linkifyjs/html
, linkifyjs/plugins/*
linkify-string
, linkify-html
and linkify-plugin-*
instead.mailto:
now have type url
instead of email
linkify-plugin-ip
plugin for detecting IPv4 and IPv6 addresseslinkify-plugin-keyword
plugin for detecting arbitrary keywordslinkify.find()
function accepts an options
argument for output formattingrender
option to override link renderingoptionalSlashSlash
argument for registerCustomProtocol
to allow links that don't require //
after scheme:
toFormattedString(options)
, toFormattedHref(options)
and toFormattedObject(options)
that accept a linkify.Options
objectlinkify-react
: New as
property (alias for tagName
)truncate
)linkify-html
: Improved HTML entity parsingPublished by nfrasser over 2 years ago
linkifyjs/string
, linkifyjs/html
, linkifyjs/plugins/*
packagesmailto:
now have type url
instead of email
linkify.find()
function accepts a third options
argument for output formattingtoFormattedString(options)
, toFormattedHref(options)
and toFormattedObject(options)
that accept a linkify.Options
objectrender
option to override link renderingoptionalSlashSlash
argument for registerCustomProtocol
to allow links that don't require //
after scheme:
linkify-html
truncate
)Published by nfrasser almost 3 years ago
linkify-html
Published by nfrasser almost 3 years ago
"module"
field in package.json
(#363 - thanks @palash2601)Published by nfrasser about 3 years ago
Published by nfrasser about 3 years ago
linkify-string
and linkify-html
type declarationsPublished by nfrasser about 3 years ago
Published by nfrasser about 3 years ago
linkify-react
,linkify-jquery
and linkify-element
respectively:class="linkified"
from all discovered links. Opt back in by setting the className
option:
linkifyStr(str, { className: 'linkified' })
target="_blank"
attribute for discovered URLs. Opt back in by setting the target
option:
linkifyHtml(str, {
target: (href, type) => type === 'url' && '_blank'
})
<span>
tag wrapper in favour of tag-less React.Fragment
for React >=16. To opt back-in, set tagName='span'
:
<Linkify tagName='span'>{content}</Linkify>
linkify-string
and linkify-html
instead of linkifyjs/string
and linkifyjs/html
. The embedded packages will be removed in v4.0linkify-plugin-[PLUGIN]
instead of linkifyjs/plugin/[PLUGIN]
. The embedded packages will be removed in v4.0linkify.registerCustomProtocol('protocol')
rel
option at top level as an alternate way of including it in attributes
linkify.find()
output includes start and end indexes for where in the string a link was found// Before
import * as linkify from 'linkifyjs'
import hashtag from 'linkifyjs/plugins/hashtag'
hashtag(linkify)
// After
import * as linkify from 'linkifyjs'
import 'linkifyjs/plugins/hashtag'
Published by nfrasser over 3 years ago
npm install
displays vulnerabilities. (#265)Published by nfrasser over 5 years ago
Published by nfrasser over 6 years ago
Published by nfrasser about 7 years ago
Published by nfrasser almost 8 years ago
now works as expected in linkify-html (#184)Published by nfrasser about 8 years ago