v4.0.0-beta.1
Pre-release
Pre-release
Breaking Changes
- Removed deprecated
linkifyjs/string,linkifyjs/html,linkifyjs/plugins/*packages - Refactored scanner internals break plugins created with Linkify v3
- Links that begin with
mailto:now have typeurlinstead ofemail
Added
linkify.find()function accepts a thirdoptionsargument for output formatting- Link token methods
toFormattedString(options),toFormattedHref(options)andtoFormattedObject(options)that accept alinkify.Optionsobject - New
renderoption to override link rendering - More granular scanner tokens for improved plugin flexibility
- Second
optionalSlashSlashargument forregisterCustomProtocolto allow links that don't require//afterscheme:
Fixed
- Improved HTML entity parsing with
linkify-html - Improved link detection with mixed languages
- Consistent option availability across interfaces (including
truncate)