league/html-to-markdown
An HTML-to-markdown conversion helper for PHP
5.1.1
35M downloads/mo
#577 most downloaded on Packagist
thephpleague/html-to-markdown
What this package is like to depend on
Last release 3 years ago
no release in 18 months
Release timing varies
gaps range from 2 months to 1.4 years
Some releases are documented
notes for 13 of 39 stable releases
Nothing withdrawn
no release was ever pulled
13 years old
39 releases · first in 2013
0 releases in the last 12 months
see the full history below
Release timeline
39 releases · Aug 2013 to Jul 2023Releases
latest 39-
5.1.112 Jul 2023Release notes
Open source →Fixed
- Fixed
<pre>tags with attributes not being parsed (#215, #238) - Fixed missing type checks and coercions
- Fixed
-
5.1.002 Mar 2022Release notes
Open source →Changed
- Changed horizontal rule style (#218, #219)
Fixed
- Fixed
Element::getValue()not handling possible nulls
-
5.0.206 Nov 2021Release notes
Open source →Fixed
- Fixed missplaced comment nodes appearing at the start of the HTML input (#212)
Release notes
Open source →Fixed
- Fixed missplaced comment nodes appearing at the start of the HTML input (#212)
-
5.0.117 Sep 2021 -
5.0.029 Mar 2021Release notes
Open source →Added
- Added support for tables (#203)
- This feature is disable by default - see README for how to enable it
- Added new
strip_placeholder_linksoption to strip<a>tags withouthrefattributes (#196) - Added new methods to
ElementInterface:hasParent()getNextSibling()getPreviousSibling()getListItemLevel()
- Added several parameter and return types across all classes
- Added new
PreConverterInterfaceto 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\RuntimeExceptionwhen unexpectedDOMDocument-related errors occur
Fixed
Release notes
Open source →Added
- Added support for tables (#203)
- This feature is disable by default - see README for how to enable it
- Added new
strip_placeholder_linksoption to strip<a>tags withouthrefattributes (#196) - Added new methods to
ElementInterface:hasParent()getNextSibling()getPreviousSibling()getListItemLevel()
- Added several parameter and return types across all classes
- Added new
PreConverterInterfaceto 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\RuntimeExceptionwhen unexpectedDOMDocument-related errors occur
Fixed
- Fixed complex nested lists containing heading and paragraphs (#198)
- Fixed consecutive emphasis producing incorrect markdown (#202)
- Added support for tables (#203)
-
4.10.001 Jul 2020Release notes
Open source →Release notes
Open source →Added
- Added the ability to disable autolinking with a configuration option (#187, #188)
-
4.9.128 Dec 2019 -
4.9.002 Nov 2019 -
4.8.331 Oct 2019 -
4.8.202 Aug 2019Release notes
Open source →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
Release notes
Open source →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
-
4.8.124 Dec 2018Release notes
Open source →Added
- Added support for PHP 7.3
Fixed
- Fixed paragraphs following tables (#165, #166)
- Fixed incorrect list item escaping (#168, #169)
-
4.8.018 Sep 2018Release notes
Open source →Added
- Added support for email auto-linking
- Added a new interface (
HtmlConverterInterface) for the mainHtmlConverterclass - Added additional test cases (#14)
Changed
- The
italic_styleoption now defaults to'*'so that in-word emphasis is handled properly (#75)
Fixed
- Fixed several issues of
<code>and<pre>tags not converting to blocks or inlines properly (#26, #70, #102, #140, #161, #162) - Fixed in-word emphasis using underscores as delimiter (#75)
- Fixed character escaping inside of
<div>elements - Fixed header edge cases
Deprecated
- The
bold_styleanditalic_styleoptions have been deprecated (#75)
-
4.7.019 May 2018Release notes
Open source →Added
- Added
setOptions()function for chainable calling (#149) - Added new
list_item_style_alternateoption for converting every-other list with a different character (#155)
Fixed
- Fixed insufficient newlines after code blocks (#144, #148)
- Fixed trailing spaces not being preserved in link anchors (#157)
- Fixed list-like lines not being escaped inside of lists items (#159)
- Added
-
4.6.207 Jan 2018Nothing published for this version
-
4.6.101 Jan 2018Nothing published for this version
-
4.6.024 Oct 2017Nothing published for this version
-
4.5.009 Oct 2017Nothing published for this version
-
4.4.116 Mar 2017Nothing published for this version
-
4.4.028 Dec 2016Nothing published for this version
-
4.3.127 Oct 2016Nothing published for this version
-
4.3.026 Oct 2016Nothing published for this version
-
4.2.227 Sep 2016Nothing published for this version
-
4.2.118 May 2016Nothing published for this version
-
4.2.001 Feb 2016Nothing published for this version
-
4.1.120 Nov 2015Nothing published for this version
-
4.1.029 Oct 2015Nothing published for this version
-
4.0.101 Sep 2015Nothing published for this version
-
4.0.025 Jul 2015Nothing published for this version
-
3.1.123 Jul 2015Nothing published for this version
-
3.1.020 Jul 2015Nothing published for this version
-
3.0.014 Jul 2015Nothing published for this version
-
2.2.229 May 2015Nothing published for this version
-
2.2.122 Feb 2015Nothing published for this version
-
2.2.022 Jan 2015Nothing published for this version
-
2.1.204 Jan 2015Nothing published for this version
-
2.1.102 Nov 2013Nothing published for this version
-
2.1.019 Oct 2013Nothing published for this version
-
2.0.112 Oct 2013Nothing published for this version
-
2.0.014 Aug 2013Nothing published for this version