# Run-together markdown formatting mixed with html makes images not load

**URL:** https://meta.discourse.org/t/run-together-markdown-formatting-mixed-with-html-makes-images-not-load/199445
**Category:** Support
**Created:** [August 6, 2021, 3:55pm UTC](https://meta.discourse.org/t/run-together-markdown-formatting-mixed-with-html-makes-images-not-load/199445 "2021-08-06T15:55:43Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [August 9, 2021, 1:11pm UTC](https://meta.discourse.org/t/run-together-markdown-formatting-mixed-with-html-makes-images-not-load/199445/5 "2021-08-09T13:11:41Z")

</div>

@simonk Thanks for that useful investigation. Both of you could address the issue by entering your WP domains in the site setting ` disabled image download domains`.

If you’re looking to go deeper into the issue, i.e. trying to handle this in some automated fashion, the difference between @mattdm’s case and yours points to the complexity there. He’s expecting the browser’s treatment of HTML `<p>` and `<img>` elements to be carried over in the form of a line break in the markdown, whereas you’re expecting almost (not quite) the opposite, i.e. for the image to be still displayed inline with the same dimensions as the existing `<img>` in the original HTML.

For more on this aspect of the issue you can see the existing posts on this, e.g.

> [@Markdown rendering issue with image surrounded with HTML](https://meta.discourse.org/t/markdown-rendering-issue-with-image-surrounded-with-html/152801/23):
>
> Sorry for the multiple posts in this topic, but the issue also affects images in posts that are created through our Zendesk plugin when the sync comments from zendesk setting is enabled. The difficulty with this case is that it’s not possible to know the source of the images before hand, so the workaround of adding the image src to the disabled image download domains setting will not work. Is there any way we could just prevent remote images from being downloaded to local if the image tag is wr…

---

_[View the full topic](https://meta.discourse.org/t/run-together-markdown-formatting-mixed-with-html-makes-images-not-load/199445)._
