html2text icon indicating copy to clipboard operation
html2text copied to clipboard

Continue '>' lead for blockquotes wrapped across multiple lines

Open madduck opened this issue 6 years ago • 0 comments

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!

madduck avatar Oct 22 '19 01:10 madduck