# System auto converts images in HTML into markdown, breaking them

**URL:** https://meta.discourse.org/t/system-auto-converts-images-in-html-into-markdown-breaking-them/230227
**Category:** Support
**Created:** [June 16, 2022, 7:23pm UTC](https://meta.discourse.org/t/system-auto-converts-images-in-html-into-markdown-breaking-them/230227 "2022-06-16T19:23:47Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![darkpixlz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/darkpixlz/32/549896_2.png) [@darkpixlz](https://meta.discourse.org/u/darkpixlz)
#### Post date: [June 16, 2022, 7:23pm UTC](https://meta.discourse.org/t/system-auto-converts-images-in-html-into-markdown-breaking-them/230227/1 "2022-06-16T19:23:47Z")

</div>

_NOTE: I reported this bug on a different forum at first, but somebody told me it should probably go on here. This post is directly copied from that forum._  
This is a rather obscure issue, but if you try and do something like this in HTML

```html
<blockquote>
<p><img style="display=inline-block;" src="upload://tbEylS4iHyycxJFPT1cnaUFc17U.png" alt="Check" data-base62-sha1="tbEylS4iHyycxJFPT1cnaUFc17U" width="15" height="15"> Solved by <a href="https://meta.discourse.org/u/pixlz/summary">Pixlz</a> in <a href="https://discourse.theme-creator.io/c/junk/16?preview_theme_id=6379">post #1</a></p>
</blockquote>

```

Just for the funny in a PM to trick some friends, it should work like this. (taken from a discourse test site)  
 ![](https://global.discourse-cdn.com/meta/original/4X/c/c/7/cc7a9746e24fe6b9c549137b90b8e78e3ac99d92.png)  
It works for 5 minutes, but @system auto edits it and it breaks, turning into markdown.

 ![image](https://global.discourse-cdn.com/meta/original/4X/a/a/d/aadb034d9672d2c3864a1739751e966085387ce1.png)

Note that Discourse also does this, but it weirdly doesn’t break like it does here.

 ![image](https://global.discourse-cdn.com/meta/original/4X/c/c/7/cc778f654f20dd8ab188a29537c84dfeb9397e8b.png)

Trying to put the upload:// as the image doesn’t work, it only works on a real website, which is why it isn’t working.

It ends up doing this for some reason, it changes after about 5 minutes

 ![image](https://global.discourse-cdn.com/meta/original/4X/5/6/2/5622a9e1b3069f0780f928a9ff59a7ed6acf2d89.png)

What I posted is just an example of this, it does it to any image embedded within HTML.

[original thread on that forum](https://devforum.roblox.com/t/system-auto-converts-html-images-into-markdown-breaking-it/1834641), as I said I was told that this should probably go here instead, because it’s a default behavior of system.

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [June 16, 2022, 9:51pm UTC](https://meta.discourse.org/t/system-auto-converts-images-in-html-into-markdown-breaking-them/230227/2 "2022-06-16T21:51:03Z")

</div>

This is fixed in 2.9 beta, but it looks like the roblox forum you linked is on an older version. More details over in this topic:

> [@Markdown rendering issue with image surrounded with HTML](https://meta.discourse.org/t/markdown-rendering-issue-with-image-surrounded-with-html/152801/30):
>
> This should be resolved by: [https://github.com/discourse/discourse/commit/720e1ca9e79a00acf72e77a42de3f421ff661081](https://github.com/discourse/discourse/commit/720e1ca9e79a00acf72e77a42de3f421ff661081)[https://github.com/discourse/discourse/commit/b2a8dc4c0fb80a6ef7721b310f2c59eebb218670](https://github.com/discourse/discourse/commit/b2a8dc4c0fb80a6ef7721b310f2c59eebb218670) Let’s try it here on Meta. \<div\> Image in an HTML block: \<img src="..." width=100 height=100\> \</div\> Image in an HTML block:

---

<div class="post-metadata">

### Author: ![darkpixlz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/darkpixlz/32/549896_2.png) [@darkpixlz](https://meta.discourse.org/u/darkpixlz)
#### Post date: [June 16, 2022, 11:05pm UTC](https://meta.discourse.org/t/system-auto-converts-images-in-html-into-markdown-breaking-them/230227/3 "2022-06-16T23:05:39Z")

</div>

Thanks, do you know what version in specific? I dont think you can publicly check it.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [June 17, 2022, 12:15am UTC](https://meta.discourse.org/t/system-auto-converts-images-in-html-into-markdown-breaking-them/230227/4 "2022-06-17T00:15:00Z")

</div>

You can view source and see the version and commit.

---

<div class="post-metadata">

### Author: ![darkpixlz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/darkpixlz/32/549896_2.png) [@darkpixlz](https://meta.discourse.org/u/darkpixlz)
#### Post date: [June 17, 2022, 3:43am UTC](https://meta.discourse.org/t/system-auto-converts-images-in-html-into-markdown-breaking-them/230227/5 "2022-06-17T03:43:14Z")

</div>

Yep, seems like it’s using 2.8.3, thanks.

 ![image](https://global.discourse-cdn.com/meta/original/4X/f/0/7/f078f6acc23a94f71c6fa4cb8328a00ed68f72a5.png)

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [July 17, 2022, 3:43am UTC](https://meta.discourse.org/t/system-auto-converts-images-in-html-into-markdown-breaking-them/230227/6 "2022-07-17T03:43:59Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
