Releases: thephpleague/commonmark
Releases · thephpleague/commonmark
0.15.4
Added
- Added new methods to
Cursor
(#280):advanceToNextNonSpaceOrNewline()
- Identical replacement for the (now-deprecated)advanceToFirstNonSpace()
methodadvanceToNextNonSpaceOrTab()
- Similar replacement foradvanceToFirstNonSpace()
but with proper tab handlinggetNextNonSpaceCharacter()
- Identical replacement for the (now-deprecated)getFirstNonSpaceCharacter()
methodgetNextNonSpacePosition()
- Identical replacement for the (now-deprecated)getFirstNonSpacePosition()
method
- Added new method to
CursorState
(#280):getNextNonSpaceCache()
- Identical replacement for the (now-deprecated)getFirstNonSpaceCache()
method
Fixed
- Fixed duplicate characters in non-intended lines containing tabs (#279)
Deprecated
All deprecations listed here will be removed in a future 0.x release. See UPGRADE.md for instructions on preparing your code for the eventual removal of these methods.
- Deprecated
Cursor::advanceToFirstNonSpace()
(#280)- Use
advanceToNextNonSpaceOrTab()
oradvanceToNextNonSpaceOrNewline()
instead, depending on your requirements
- Use
- Deprecated
Cursor::getFirstNonSpaceCharacter()
(#280)- Use
Cursor::getNextNonSpaceCharacter()
instead
- Use
- Deprecated
Cursor::getFirstNonSpacePosition()
(#280)- Use
Cursor::getNextNonSpacePosition()
instead
- Use
- Deprecated
CursorState::getFirstNonSpaceCache()
(#280)- Use
CursorState::getNextNonSpaceCache()
instead
- Use
0.15.3
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.