Alir3z4 / html2text

Convert HTML to Markdown-formatted text.
alir3z4.github.io/html2text/
GNU General Public License v3.0
1.76k stars 270 forks source link

Add a space if none exists following an img alt #360

Open johnkw opened 3 years ago

johnkw commented 3 years ago

For example the following is not a great rendering, and could generate incorrect results for ie a screen-reader for accessibility:

$ echo '<img alt="hello" src="wee">world' | html2text --images-to-alt
helloworld

Expected output would be:

hello world

(There are probably several other cases of this conceptual bug, for example involving <div> tags. Those may warrant separate tickets depending on how this ticket is received.)