Alir3z4 / html2text

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

Continue '>' lead for blockquotes wrapped across multiple lines #303

Open madduck opened 4 years ago

madduck commented 4 years ago

html2text 2019.8.11, Python 3.7.4

% echo "<blockquote>Lorem ipsum dolor sit</blockquote>post" | python -m html2text -b 8
> Lorem
ipsum
dolor
sit

post

This is known as "lazy mode" as far as I know, and while it works and can be parsed back to HTML from Markdown, it would be awesome to have an option that governs the conversion such that the > leader is prefixed to every line:

% echo "<blockquote>Lorem ipsum dolor sit</blockquote>post" | python -m html2text -b 8
> Lorem
> ipsum
> dolor
> sit

post

Thank you for your consideration!