Alir3z4 / Alir3z4/html2text

Trailing line break in list element should be ignored

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

Description

Give the following HTML:
```


  • Item 1

  • Item 2


```

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.

- Version by 2016.9.19
- Python version 2.7.6

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.