1.6.0
Please see https://commonmark.thephpleague.com/1.6/upgrading/ for important information about this release and the upcoming 2.0.0 version.
Added
- Added forward-compatibility for configuration options which will be changing in 2.0:
commonmark/enable_em(currentlyenable_emin 1.x)commonmark/enable_strong(currentlyenable_strongin 1.x)commonmark/use_asterisk(currentlyuse_asteriskin 1.x)commonmark/use_underscore(currentlyuse_underscorein 1.x)commonmark/unordered_list_markers(currentlyunordered_list_markersin 1.x)mentions/*/prefix(currentlymentions/*/symbolin 1.x)mentions/*/pattern(currentlymentions/*/regexin 1.x)max_nesting_level(currently supportsintandfloatvalues in 1.x; will only supportintin 2.0)
- Added new
MarkdownConverterclass for creating converters with custom environments; this replaces the previously-deprecatedConverterclass - Added new
RegexHelper::matchFirst()method - Added new
Configuration::exists()method
Changed
- The
max_nesting_leveloption now defaults toPHP_INT_MAXinstead ofINF
Deprecated
- Deprecated the configuration options shown above
- Deprecated the ability to pass a custom
Environmentinto the constructors ofCommonMarkConverterandGithubFlavoredMarkdownConverter; useMarkdownConverterinstead - Deprecated
ConfigurableEnvironmentInterface::setConfig(); usemergeConfig()instead - Deprecated calling
ConfigurableEnvironmentInterface::mergeConfig()without any parameters - Deprecated calling
Configuration::get()andEnvironmentInterface::getConfig()without any parameters - Deprecated calling
Configuration::set()without the second$valueparameter - Deprecated
RegexHelper::matchAll(); useRegexHelper::matchFirst()instead - Deprecated extending the
ArrayCollectionclass; will be markedfinalin 2.0
Fixed
- Fixed missing check for empty arrays being passed into the
unordered_list_markersconfiguration option