Skip to content

2.0.0-beta2

Pre-release
Pre-release
Compare
Choose a tag to compare
@colinodell colinodell released this 27 Jun 16:48
· 544 commits to main since this release
2.0.0-beta2
68ef558

See https://commonmark.thephpleague.com/2.0/upgrading/ for detailed information on upgrading to version 2.0.

Added

  • Added new Node::iterator() method and NodeIterator class for faster AST iteration (#683, #684)

Changed

  • Made compatible with CommonMark spec 0.30.0
  • Optimized link label parsing
  • Optimized AST iteration for a 50% performance boost in some event listeners (#683, #684)

Fixed

  • Fixed processing instructions with EOLs
  • Fixed case-insensitive matching for HTML tag types
  • Fixed type 7 HTML blocks incorrectly interrupting lazy paragraphs
  • Fixed newlines in reference labels not collapsing into spaces
  • Fixed link label normalization with escaped newlines
  • Fixed unnecessary AST iteration when no default attributes are configured