Alir3z4 / Alir3z4/html2text

Continue '>' lead for blockquotes wrapped across multiple lines

Open
#303 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
2.2k
Forks
296
PR merge metrics
No merged PRs in 30d

Description

html2text 2019.8.11, Python 3.7.4
```
% echo "

Lorem ipsum dolor sit
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 "

Lorem ipsum dolor sit
post" | python -m html2text -b 8
> Lorem
> ipsum
> dolor
> sit

post
```
Thank you for your consideration!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.