Skip to content

Releases: thephpleague/commonmark

2.1.1

02 Jan 18:31
2.1.1
17d2b9c
Compare
Choose a tag to compare

Added

  • Added missing return type to Environment::dispatch() to fix deprecation warning (#778)

2.1.0

05 Dec 18:30
2.1.0
819276b
Compare
Choose a tag to compare

Added

  • Added support for ext-yaml in FrontMatterExtension (#715)
  • Added support for symfony/yaml v6.0 in FrontMatterExtension (#739)
  • Added new heading_permalink/aria_hidden config option (#741)

Fixed

  • Fixed PHP 8.1 deprecation warning (#759, #762)

2.0.2

14 Aug 14:07
2.0.2
2df8770
Compare
Choose a tag to compare

Changed

  • Bumped minimum version of league/config to support PHP 8.1

Fixed

  • Fixed ability to register block parsers that identify lines starting with letters (#706)

2.0.1

31 Jul 19:21
2.0.1
0d57f20
Compare
Choose a tag to compare

Fixed

  • Fixed nested autolinks (#689)
  • Fixed description lists being parsed incorrectly (#692)
  • Fixed Table of Contents not respecting Heading Permalink prefixes (#690)

2.0.0

24 Jul 20:27
2.0.0
167142b
Compare
Choose a tag to compare

No changes were introduced since the previous 2.0.0-rc2 release.

Please refer to the full Changelog for a list of all changes between 1.x and 2.0. An upgrading guide is also available.

2.0.0-rc2

17 Jul 17:21
2.0.0-rc2
61f4efe
Compare
Choose a tag to compare
2.0.0-rc2 Pre-release
Pre-release

Fixed

  • Fixed Mentions inside of links creating nested links against the spec's rules (#688)

1.6.6

17 Jul 17:14
1.6.6
c4228d1
Compare
Choose a tag to compare

Fixed

  • Fixed Mentions inside of links creating nested links against the spec's rules (#688)

2.0.0-rc1

10 Jul 19:58
2.0.0-rc1
4b7060e
Compare
Choose a tag to compare
2.0.0-rc1 Pre-release
Pre-release

No changes were introduced since the previous release.

2.0.0-beta3

03 Jul 22:34
2.0.0-beta3
d8b7646
Compare
Choose a tag to compare
2.0.0-beta3 Pre-release
Pre-release

Changed

  • Any leading UTF-8 BOM will be stripped from the input
  • The getEnvironment() method of CommonMarkConverter and GithubFlavoredMarkdownConverter will always return the concrete, configurable Environment for upgrading convenience
  • Optimized AST iteration
  • Lots of small micro-optimizations

2.0.0-beta2

27 Jun 16:48
2.0.0-beta2
68ef558
Compare
Choose a tag to compare
2.0.0-beta2 Pre-release
Pre-release

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