Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consecutive em tags end up in __ #173

Closed
schtibe opened this issue Jul 11, 2017 · 1 comment
Closed

Consecutive em tags end up in __ #173

schtibe opened this issue Jul 11, 2017 · 1 comment

Comments

@schtibe
Copy link

schtibe commented Jul 11, 2017

When there is a closing em tag followed by an opening one, the output will result in a double underscore, which seems to be invalid Markdown syntax. I think the _ must always be surrounded by a space in markdown.

See following test code:

from html2text import html2text

foo = """
<em>Something emphasized</em><em>followed by something else</em>
"""

print(html2text(foo))

Tested with:

  • html2text 2016.9.19
  • Python 3.5.3
@jonathan-s
Copy link
Contributor

PR #177 should fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants