It would be great if the fix from #177 for #142, which strips leading and trailing whitespace for emphasis/strong/underline/strikethrough, could also be applied to links and inline code where leading and trailing space is stripped for white-space: normal.
html2text.html2text('<a href="https://example.com">\nExample\n</a>')
'[ Example ](https://example.com)\n\n'
>>> html2text.html2text('<code>\nx = 1\n</code>')
'` x = 1 `\n\n'
Version by html2text --version: 2020.1.16 (a3ed67b)
It would be great if the fix from #177 for #142, which strips leading and trailing whitespace for emphasis/strong/underline/strikethrough, could also be applied to links and inline code where leading and trailing space is stripped for
white-space: normal
.html2text --version
: 2020.1.16 (a3ed67b)python --version
: 3.9.10Related: #371
Thanks, Kevin