It sounds like you are running into the issue described here: Fix broken images for posts created by the WP Discourse and RSS plugins. There are more details about the issue in this post: Fix broken images for posts created by the WP Discourse and RSS plugins - #3 by simon.
There is a related, but unresolved bug topic about the issue here: Markdown rendering issue with image surrounded with HTML