Skip to content

Releases: thephpleague/html-to-markdown

5.1.1

12 Jul 21:21
5.1.1
0b4066e
Compare
Choose a tag to compare

Fixed

  • Fixed <pre> tags with attributes not being parsed (#215, #238)
  • Fixed missing type checks and coercions

5.1.0

02 Mar 17:25
5.1.0
e0fc8cf
Compare
Choose a tag to compare

Changed

  • Changed horizontal rule style (#218, #219)

Fixed

  • Fixed Element::getValue() not handling possible nulls

5.0.2

06 Nov 05:39
5.0.2
4d0394e
Compare
Choose a tag to compare

Fixed

  • Fixed missplaced comment nodes appearing at the start of the HTML input (#212)

5.0.1

17 Sep 20:01
5.0.1
e5600a2
Compare
Choose a tag to compare

Fixed

  • Fixed lists not using the correct amount of indentation (#211)

5.0.0

29 Mar 01:30
c4dbebb
Compare
Choose a tag to compare

Added

  • Added support for tables (#203)
    • This feature is disable by default - see README for how to enable it
  • Added new strip_placeholder_links option to strip <a> tags without href attributes (#196)
  • Added new methods to ElementInterface:
    • hasParent()
    • getNextSibling()
    • getPreviousSibling()
    • getListItemLevel()
  • Added several parameter and return types across all classes
  • Added new PreConverterInterface to allow converters to perform any necessary pre-parsing

Changed

  • Supported PHP versions increased to PHP 7.2 - 8.0
  • HtmlConverter::convert() may now throw a \RuntimeException when unexpected DOMDocument-related errors occur

Fixed

  • Fixed complex nested lists containing heading and paragraphs (#198)
  • Fixed consecutive emphasis producing incorrect markdown (#202)

4.10.0

01 Jul 00:37
0868ae7
Compare
Choose a tag to compare

Added

  • Added the ability to disable autolinking with a configuration option (#187, #188)

4.9.1

28 Dec 01:33
1dcd0f8
Compare
Choose a tag to compare

Fixed

  • Fixed issue with HTML entity escaping in text (#184)

4.9.0

02 Nov 14:56
7131910
Compare
Choose a tag to compare

Added

  • Added new option to preserve comments (#177, #179)

4.8.3

31 Oct 13:01
63adb92
Compare
Choose a tag to compare

Fixed

  • Fixed whitespace preservation around <code> tags (#174, #178)

4.8.2

02 Aug 11:58
e747489
Compare
Choose a tag to compare

Fixed

  • Fixed headers not being placed onto a new line in some cases (#172)
  • Fixed handling of links containing spaces (#175)

Removed

  • Removed support for HHVM