Skip to content

Releases: thephpleague/commonmark

1.2.0

09 Jan 22:43
2533c38
Compare
Choose a tag to compare

Changed

  • Removed URL decoding step before encoding (more performant and better matches the JS library)
  • Removed redundant token from HTML tag regex

1.1.2

10 Dec 02:58
772e03f
Compare
Choose a tag to compare

Fixed

  • Fixed URL normalization not handling non-UTF-8 sequences properly (#395, #396)

1.1.1

11 Nov 22:26
d74654d
Compare
Choose a tag to compare

Fixed

  • Fixed handling of link destinations with unbalanced unescaped parens
  • Fixed adding delimiters to stack which can neither open nor close a run

1.1.0

31 Oct 13:34
d927c05
Compare
Choose a tag to compare

Added

  • Added a new Html5EntityDecoder class (#387)

Changed

  • Improved performance by 10% (#389)
  • Made entity decoding less memory-intensive (#386, #387)

Fixed

  • Fixed PHP 7.4 compatibility issues

Deprecated

  • Deprecated the Html5Entities class - use Html5EntityDecoder instead (#387)

1.0.0

29 Jun 11:24
7a40f2b
Compare
Choose a tag to compare

First stable release! 🎉

No code changes have been introduced since 1.0.0-rc1

1.0.0-rc1

20 Jun 01:57
a672135
Compare
Choose a tag to compare
1.0.0-rc1 Pre-release
Pre-release

Added

  • Extracted a ReferenceMapInterface from the ReferenceMap class
  • Added optional ReferenceMapInterface parameter to the Document constructor

Changed

  • Replaced all references to ReferenceMap with ReferenceMapInterface
  • ReferenceMap::addReference() no longer returns $this

Fixed

  • Fixed bug where elements with content of "0" wouldn't be rendered (#376)

0.19.3

18 Jun 18:33
c6ecea9
Compare
Choose a tag to compare

Fixed

  • Fixed bug where elements with content of "0" wouldn't be rendered (#376)

1.0.0-beta4

05 Jun 21:47
a080b1e
Compare
Choose a tag to compare
1.0.0-beta4 Pre-release
Pre-release

Added

  • Added event dispatcher functionality (#359, #372)

Removed

  • Removed DocumentProcessorInterface functionality in favor of event dispatching (#373)

1.0.0-beta3

28 May 00:54
322dd4b
Compare
Choose a tag to compare
1.0.0-beta3 Pre-release
Pre-release

Changed

  • Made the Delimiter class final and extracted a new DelimiterInterface
    • Modified most external usages to use this new interface
  • Renamed three Delimiter methods:
    • getOrigDelims() renamed to getOriginalLength()
    • getNumDelims() renamed to getLength()
    • setNumDelims() renamed to setLength()
  • Made additional classes final:
    • DelimiterStack
    • ReferenceMap
    • ReferenceParser
  • Moved ReferenceParser into the Reference sub-namespace

Removed

  • Removed unused Delimiter methods:
    • setCanOpen()
    • setCanClose()
    • setChar()
    • setIndex()
    • setInlineNode()
  • Removed fluent interface from Delimiter (setter methods now have no return values)

1.0.0-beta2

27 May 17:53
e96544a
Compare
Choose a tag to compare
1.0.0-beta2 Pre-release
Pre-release

This beta release fixes a couple of items that were not addressed in the previous beta.

Changed

  • DelimiterProcessorInterface::process() will accept any type of AbstractStringContainer now, not just Text nodes
  • The Delimiter constructor, getInlineNode(), and setInlineNode() no longer accept generic Node elements - only AbstractStringContainers

Removed

  • Removed all deprecated functionality:
    • The safe option (use html_input and allow_unsafe_links options instead)
    • All deprecated RegexHelper constants
    • DocParser::getEnvironment() (you should obtain it some other way)
    • AbstractInlineContainer (use AbstractInline instead and make isContainer() return true)