html2text icon indicating copy to clipboard operation
html2text copied to clipboard

Trailing line break in list element should be ignored

Open dmauro opened this issue 9 years ago • 0 comments

Give the following HTML:

<ul>
    <li>Item 1 <br /></li>
    <li>Item 2</li>
</ul>

the following Markdown will be generated:

* Item 1 \n\n* Item 2

Which will actually be interpreted as two distinct unordered lists instead of one list with two entries. It seems that removing trailing line breaks from list items would make for a better semantic translation.

dmauro avatar Feb 01 '17 18:02 dmauro