This release contains several breaking changes and a minimum PHP version bump - see UPGRADE.md for more details.
Added
- Added new
max_nesting_levelsetting (#243) - Added minor performance optimizations to
Cursor
Changed
- Minimum PHP version is now 5.6.5.
- All full and partial regular expressions in
RegexHelperare now defined as constants instead of being built on-the-fly. Cursor::saveState()now returns anarrayinstead of aCursorStateobject.Cursor::restoreState()now accepts anarrayparameter instead of aCursorStateobject.- Saving/restoring the Cursor state no longer tracks things that don't change (like the text content).
RegexHelperis nowfinal.- References to
InlineContainerchanged to newInlineContainerInterfaceinterface. MiscExtension::addInlineParser()andMiscExtension::addBlockRenderer()now return$thisinstead of nothing.
Fixed
- Fixed
Reference::normalizeReference()not properly collapsing whitespace to a single space
Deprecated
RegexHelper::getInstance()and all instance (non-static) methods have been deprecated.- The
InlineContainerinterface has been deprecated. UseInlineContainerInterfaceinstead.
Removed
- Removed support for PHP 5.4 and 5.5.
- Removed
CursorStateclass - Removed all previous deprecations:
Cursor::getFirstNonSpacePosition()Cursor::getFirstNonSpaceCharacter()Cursor::advanceWhileMatches()Cursor::advanceToFirstNonSpace()ElementRendererInterface::escape()HtmlRenderer::escape()RegexHelper::REGEX_UNICODE_WHITESPACERegexHelper::getLinkDestinationRegex()