Html2text

Latest version: v2024.2.26

Safety actively analyzes 682416 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 5

2024.2.26

=========
----

* Fixes 409: IndexError on empty strong mark.

2024.2.25

=========
----

* Fix 332: Insert at most one space for multiple emphasis
* Feature 318: Make padded tables more similar to pandoc's pipe_tables.
* Add support for Python 3.9.
* Fix extra line breaks inside html link text (between '[' and ']')
* Fix 344: indent ``<ul>`` inside ``<ol>`` three spaces instead of two to comply with CommonMark, GFM, etc.
* Fix 324: unnecessary spaces around ``<b>``, ``<em>``, and ``strike`` tags.
* Don't wrap tables by default and add a ``--wrap-tables`` config option.
* Feature 198: Ignore ``<p>`` tags inside table rows.
* Don't wrap tables by default and add a ``--wrap-tables`` config option
* Remove support for Python ≤ 3.5. Now requires Python 3.6+.
* Support for Python 3.10+.
* Fix 320 padding empty tables and tables with no ``</tr>`` tags.
* Add ``ignore_mailto_links`` config option to ignore ``mailto:`` style links.
* Feature 407: Support the superscript and subscript tags.
* Fix 373: ``\n`` inside text of a Markdown link.
* Feature 406: Improve support for null atttibute values.

2020.1.16

=========
----

* Add type annotations.
* Add support for Python 3.8.
* Performance improvements when ``wrap_links`` is ``False`` (the default).
* Configure setuptools using setup.cfg.

2019.9.26

=========
----

* Fix long blockquotes wrapping.
* Remove the trailing whitespaces that were added after wrapping list items & blockquotes.
* Remove support for Python ≤ 3.4. Now requires Python 3.5+.
* Fix memory leak when processing a document containing a ``<abbr>`` tag.
* Fix ``AttributeError`` when reading text from stdin.
* Fix ``UnicodeEncodeError`` when writing output to stdout.

2019.8.11

=========
----

* Add support for wrapping list items.
* Fix 201: handle &lrm;/&rlm; marks mid-text within stressed tags or right after stressed tags.
* Feature 213: ``images_as_html`` config option to always generate an ``img`` html tag. preserves "height", "width" and "alt" if possible.
* Remove support for end-of-life Pythons. Now requires Python 2.7 or 3.4+.
* Remove support for retrieving HTML over the network.
* Add ``__main__.py`` module to allow running the CLI using ``python -m html2text ...``.
* Fix 238: correct spacing when a HTML entity follows a non-stressed tags which follow a stressed tag.
* Remove unused or deprecated:

* ``html2text.compat.escape()``
* ``html2text.config.RE_UNESCAPE``
* ``html2text.HTML2Text.replaceEntities()``
* ``html2text.HTML2Text.unescape()``
* ``html2text.unescape()``

* Fix 208: handle LEFT-TO-RIGHT MARK after a stressed tag.

2018.1.9

========
----

* Fix 188: Non-ASCII in title attribute causes encode error.
* Feature 194: Add support for the <kbd> tag.
* Feature 193: Add support for the <q> tag.

Page 1 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.