html2text icon indicating copy to clipboard operation
html2text copied to clipboard

Nested strong tags result in incorrect markup

Open JacksonToomey opened this issue 6 years ago • 1 comments

  • Version by html2text --version 2018.1.9
  • Python version python --version Python 3.6.6

With an input of This tag shows <strong>bold<strong> text.</strong></strong>, the resulting markup is This tag shows **bold **text.****. It should be This tag shows **bold text.**.

JacksonToomey avatar Jun 27 '19 14:06 JacksonToomey

Thanks for the report. I agree that MD doesn't allow nested bold. Would you like to submit a PR?

I believe <em> has the same issue.

jdufresne avatar Sep 26 '19 11:09 jdufresne