Skip to content

Releases: thephpleague/commonmark

2.1.2

13 Feb 14:58
2.1.2
34712ca

Choose a tag to compare

Fixed

  • Fixed double-escaping of image alt text (#806, #810)
  • Fixed Psalm typehints for event class names

2.0.3

13 Feb 14:23
2.0.3
36949f8

Choose a tag to compare

Fixed

  • Fixed double-escaping of image alt text (#806, #810)
  • Fixed Psalm typehints for event class names

2.2.1

25 Jan 14:41
2.2.1
f8afb78

Choose a tag to compare

Fixed

  • Fixed symfony/deprecation-contracts constraint

Removed

  • Removed deprecation trigger from MarkdownConverterInterface to reduce noise

2.2.0

22 Jan 14:07
2.2.0
c5aadcc

Choose a tag to compare

Added

  • Added new ConverterInterface
  • Added new MarkdownToXmlConverter class
  • Added new HtmlDecorator class which can wrap existing renderers with additional HTML tags
  • Added new table/wrap config to apply an optional wrapping/container element around a table (#780)

Changed

  • HtmlElement contents can now consist of any Stringable, not just HtmlElement and string

Deprecated

  • Deprecated MarkdownConverterInterface and its convertToHtml() method; use ConverterInterface and convert() instead

1.6.7

13 Jan 17:19

Choose a tag to compare

Changed

  • Added ReturnTypeWillChange attribute to prevent PHP 8.1 deprecation warnings (#785)
  • Coerced punctuation counts to integers to ensure floats are never used

2.1.1

02 Jan 18:31
2.1.1
17d2b9c

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

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

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

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

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.