html2text
html2text copied to clipboard
Convert HTML to Markdown-formatted text.
- Version 2020.1.16 - Python version 3.8.7 ```python body = """ 1. Error exercitationem debitis magni tenetur dolorum inventore ex. Voluptatibus possimus voluptas quibusdam vel facere eaque sit. Et et...
- Version 2024.2.26 - Test script ``` h2t = html2text.HTML2Text() text = 'Aaaa' x = h2t.handle(text) print(x) # '**A** aaa', expected '**A**aaa' ``` - Python 3.10.11 Best Regards
- Version by `html2text --version` html2text==2020.1.16 - Python version `python --version` 3.8.8 on Ubuntu WSL2 - Test script: ```python from html2text import HTML2Text h = HTML2Text() h.ignore_images = True with...
html2text version 2020.1.16 Python version 3.9.5 ```python3 import html2text test = html2text.HTML2Text() text = test.handle("Sample text K&N. Sample text.") print(text) ``` **output:** Sample text K&N.**;** Sample text. Hi, I noticed...
Hello This PR fixes an issue where an empty first cell in a table results in markdown tables which do parse properly. For example: ```html b cd ``` results in...
… or < br > #378
Hi, I found this library becaue I want to to html => text. Unfortunately the library is doing html => markdown. I haven't seen anything in the docs. Is it...
``` $ echo 'hello'{\,,\",:,\[,.,\!,\?}'' | html2text _hello_ , _hello_ " _hello_ : _hello_[ _hello_. _hello_! _hello_? ``` Note in the first three lines of the output, there is an extra...
This just copies the invalid URL into the markdown link verbatim instead of trying to join it to the base URL.