0.17.0
This release contains several breaking changes and a minimum PHP version bump - see UPGRADE.md for more details.
Added
- Added new
max_nesting_level
setting (#243) - Added minor performance optimizations to
Cursor
Changed
- Minimum PHP version is now 5.6.5.
- All full and partial regular expressions in
RegexHelper
are now defined as constants instead of being built on-the-fly. Cursor::saveState()
now returns anarray
instead of aCursorState
object.Cursor::restoreState()
now accepts anarray
parameter instead of aCursorState
object.- Saving/restoring the Cursor state no longer tracks things that don't change (like the text content).
RegexHelper
is nowfinal
.- References to
InlineContainer
changed to newInlineContainerInterface
interface. MiscExtension::addInlineParser()
andMiscExtension::addBlockRenderer()
now return$this
instead 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
InlineContainer
interface has been deprecated. UseInlineContainerInterface
instead.
Removed
- Removed support for PHP 5.4 and 5.5.
- Removed
CursorState
class - Removed all previous deprecations:
Cursor::getFirstNonSpacePosition()
Cursor::getFirstNonSpaceCharacter()
Cursor::advanceWhileMatches()
Cursor::advanceToFirstNonSpace()
ElementRendererInterface::escape()
HtmlRenderer::escape()
RegexHelper::REGEX_UNICODE_WHITESPACE
RegexHelper::getLinkDestinationRegex()