On the site I am test driving with a few willing participants (v2.1.0.beta3 +136), someone created a new topic via email using Thunderbird with three inline images. Something got messed up, as this is what came through where the images should have been:
The image that the user sent inline is in fact stored on my server at the aforementioned src location, so Discourse is apparently able to extract the image from the email message. However, instead of putting the image into the post, it just replaces the src tag from the email with the location where the image is stored. See the same snippet from the original email message:
I’m able to post inline images from Gmail, so this seems like a Discourse/Thunderbird interaction issue, and not an email inline image problem in general.
If anyone would like to see the full email message, I’d gladly send it over privately. The pictures came through fine when he forwarded it to my Gmail account.
A-ha, I’ve seen this a few times with Thunderbird (but never with images, just with text so it didn’t really impact the usability/readability of the email).
I imagine what’s going on here is that somewhere in the HTML → Markdown conversion some whitespace is being added (or not removed) producing something like this:
<img blah blah blah blah>
which is rendered like so:
<img blah blah blah blah>
Getting the raw markdown output of the post will confirm this. Do that by replacing the /t/<slug>/ part of the url with /raw/, eg:
Yeah, as I thought, it’s whitespace causing it to be rendered as a preformatted block.
Easiest way to debug this is with the raw email, but it’ll contain private information, so I suggest you PM it to @zogstrip directly, rather than post it out in the open here.
You can extract the raw email by clicking the icon next the topic date in the top right, and copying and pasting the contents of the raw tab into a text file. Then upload that text file in a PM to @zogstrip.
@zogstrip I hope that’s alright with you (it has been whenever I’ve PMed you my dodgily formatted emails!)