Alir3z4 / html2text

Convert HTML to Markdown-formatted text.
alir3z4.github.io/html2text/
GNU General Public License v3.0
1.85k stars 283 forks source link

attributes line `wrap_links` not configurable on the library level #308

Open 098799 opened 4 years ago

098799 commented 4 years ago

In the current version of html2text, if one tries to use the library through html2text function or HTML2Text class, there's no way to specify variables such as wrap_links for the program. It would be preferable if the class HTML2Text allowed configuration regardless of the cli usage. Currently, the package is not usable as a library.

098799 commented 4 years ago

Issued a PR, but it can't be merged in the current state, as hits mypy's bug: https://github.com/Alir3z4/html2text/pull/309