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

Space missing before links inside <b> tag #403

Open
nog642 opened this issue Oct 5, 2023 · 0 comments
Open

Space missing before links inside <b> tag #403

nog642 opened this issue Oct 5, 2023 · 0 comments

Comments

@nog642
Copy link

nog642 commented Oct 5, 2023

Steps to reproduce:

>>> import html2text
>>> html2text.html2text('<b>This is <a href="https://example.com/">a link</a> right here</b>')
'**This is[a link](https://example.com/) right here**\n\n'

Notice the space between the word "is" and the link is missing in the output, but is present in the input.

Tested and this issue is present on master. My python version is 3.8.10 on linux.

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

1 participant