JohannesKaufmann / html-to-markdown

⚙️ Convert HTML to Markdown. Even works with entire websites and can be extended through rules.
MIT License
891 stars 85 forks source link

🐛 Bug? <br> turns one line break into two #66

Closed suntong closed 1 year ago

suntong commented 1 year ago

Describe the bug A clear and concise description of what the bug is -- <br> turns one line break into two.

HTML Input

foo<br>bar

Generated Markdown

foo

bar

Expected Markdown

foo
bar

Additional context

The problem was initially reported at https://github.com/suntong/html2md/issues/15

God-damnit-all commented 1 year ago

Note that this happens with GitHub-flavored markdown as well. I know not all flavors of markdown support single linebreaks, but GitHub's does.

JohannesKaufmann commented 1 year ago

duplicate of #40