No breaking changes were introduced to the League’s PHP Markdown library, but we did add a new interface:
ConverterInface. Consider depending on this interface in your code instead of the concrete implementation.
Other changes include:
- Links with
target="_blank"will also get
rel="noopener noreferrer"by default (#331)
- Implemented several performance optimizations (#324)
The League’s HTML to Markdown converter received several bug fixes, as well as a new interface and the ability to convert email auto-links!
- Added support for email auto-linking
- Added a new interface (
HtmlConverterInterface) for the main
- Added additional test cases (#14)
italic_styleoption now defaults to
'*'so that in-word emphasis is handled properly (#75)
- Fixed several issues of
<pre>tags not converting to blocks or inlines properly (#26, #70, #102, #140, #161, #162)
- Fixed in-word emphasis using underscores as delimiter (#75)
- Fixed character escaping inside of
- Fixed header edge cases
italic_styleoptions have been deprecated (#75)
This was a really small bug fix release. Trying to parse malformed JSON like
[ (without the closer) now results in a
SyntaxError as expected.
- Fixed exceptions not being thrown for incomplete objects/arrays
No parsing functionality changed in the version 2 major release, but we did improve drop-in replacement for PHP 7.3.
SyntaxError exception now extends the new core
\JsonException! Any PHP 7.3 code expecting this exception will continue to work flawlessly when you swap out
json5_decode(). And for older versions of PHP we also include a polyfill so that you can reference the new
JsonException class and
JSON_THROW_ON_ERROR constant in your code.
- Added a polyfill for class
\JsonException(added in PHP 7.3)
- Added a polyfill for constant
SyntaxErrorclass now extends from