# Markdown rendering issue with image surrounded with HTML

**URL:** <https://meta.discourse.org/t/markdown-rendering-issue-with-image-surrounded-with-html/152801>\
**Category:** Bug\
**Created:** [26 במאי,‏ 2020,‏ 5:21pm UTC](https://meta.discourse.org/t/markdown-rendering-issue-with-image-surrounded-with-html/152801 "2020-05-26T17:21:21Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [27 במאי,‏ 2020,‏ 3:02am UTC](https://meta.discourse.org/t/markdown-rendering-issue-with-image-surrounded-with-html/152801/11 "2020-05-27T03:02:12Z")

</div>

> [@david](#):
>
> do you know if there’s a deliberate reason that markdown images won’t render on the same line as a `<p>` ?

This is part of the CommonMark spec

\*\*test\*\*

```plaintext
<p> **test** </p>

```

Absolutely do not want to deviate from the spec here. I guess we fix pull hotlink images to allow for this by injecting 2 newlines for cases like this. I think it is rather rare though and sort of self inflicted.

---

_[View the full topic](https://meta.discourse.org/t/markdown-rendering-issue-with-image-surrounded-with-html/152801)._
