Releases: thephpleague/commonmark
Releases · thephpleague/commonmark
0.15.2
0.15.1
0.15.0
Added
Changed
- Bumped spec target version to 0.26 (#260)
- The
CursorState
constructor requires an additional parameter (#258) - Ordered lists cannot interupt a paragraph unless they start with
1
(#260) - Blank list items cannot interupt a paragraph (#260)
Deprecated
- Deprecated
DelimiterStack::findFirstMatchingOpener()
- usefindMatchingOpener()
instead (#260)
Fixed
- Fixed tabs in ATX headers and thematic breaks (#260)
- Fixed issue where cursor state was not being restored properly (#258, #260)
- This fixed the lists-with-tabs regression reported in #258
Removed
0.14.0
Added
- The
safe
option is deprecated and replaced by 2 new options (#253, #255):html_input
(strip
,allow
orescape
): how to handle untrusted HTML input (the default isstrip
for BC reasons)allow_unsafe_links
(true
orfalse
): whether to allow risky image URLs and links (the default istrue
for BC reasons)
Deprecated
- The
safe
option is now deprecated and will be removed in the 1.0.0 release.
0.13.4
0.13.3
0.13.2
0.13.1
0.13.0
Added
- Added AST document processors (#210)
- Added optional
Environment
parameter toCommonMarkConverter
constructor
Changed
- Renamed "header" things to "heading" for spec consistency
Header
=>Heading
ATXHeaderParser
=>ATXHeadingParser
SetExtHeaderParser
=>SetExtHeadingParser
HeaderRenderer
=>HeadingRenderer
- Renamed "HorizontalRule" to "ThematicBreak" for spec consistency
HorizontalRule
=>ThematicBreak
HorizontalRuleParser
=>ThematicBreakParser
HorizontalRuleRenderer
=>ThematicBreakRenderer
HorizontalRuleRendererTest
=>ThematicBreakRendererTest
RegexHelper::getHRuleRegex()
=>RegexHelper::getThematicBreakRegex()
- Renamed inline "Html" and "RawHtml" to "HtmlInline" for consistency
Html
=>HtmlInline
RawHtmlParser
=>HtmlInlineParser
RawHtmlRenderer
=>HtmlInlineRenderer
- Don't allow whitespace between link text and link label of a reference link (spec change)
- Don't allow spaces in link destinations, even in
<>
- Allow multiline setext header content
- The
Heading
constructor now allows$contents
to be astring
(old behavior) orstring[]
(new)
- The
Fixed
- Fixed several list issues and regressions (commonmark/commonmark.js#59)
Removed
- Removed schema whitelist from autolink regex
- Moved SmartPunct functionality into new league/commonmark-extras package
0.12.0
Added
- Added ability to configure characters and disable emphasis/strong (#135)
- Added new ConfigurationAwareInterface support for all parsers, processors, and renderers (#201)
- Added HTML safe mode to handle untrusted input (#200, #201)
- Safe mode is disabled by default for backwards-compatibility
- To enable it, set the
safe
option totrue
- Added AppVeyor integration for automated unit/functional testing on Windows (#195)
Changed
AbstractBlock::finalize()
now reqires a second parameter,$endLineNumber
RegexHelper::REGEX_ENTITY
no longer includes the starting/
or the ending/i
(#194)Node::setParent()
now accepts null values (#203)
Fixed
- Fixed incorrect
endLine
positions (#187) - Fixed
DocParser::preProcessInput
dropping up to 2 ending newlines instead of just one - Fixed
EntityParser
not checking for ampersands at the start of the current position (#192, #194)