# קישור תמונה בבלוק קוד משתנה בעת הורדת תמונה מקושרת חיצונית

**URL:** <https://meta.discourse.org/t/code-block-image-link-gets-modified-when-hotlinked-image-is-downloaded/271571>\
**Category:** Bug\
**Created:** [13 ביולי,‏ 2023,‏ 7:09pm UTC](https://meta.discourse.org/t/code-block-image-link-gets-modified-when-hotlinked-image-is-downloaded/271571 "2023-07-13T19:09:56Z")\
**Posts on this page:** 1\
**Showing post:** 7

<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:** [27 בספטמבר,‏ 2023,‏ 1:00pm UTC](https://meta.discourse.org/t/code-block-image-link-gets-modified-when-hotlinked-image-is-downloaded/271571/7 "2023-09-27T13:00:40Z")

</div>

> [@rahim123](#):
>
> in a code block and then using the same code outside of the code block

💯 great description. Our logic skips **detecting** images in a codeblock. But if there is a real image somewhere with exactly-identical markdown, then our actual find/replace code isn’t robust enough to avoid the codeblocks.

It’s not going to be trivial to fix, but for now I’ve added some failing tests so that we’re tracking the issue:

[https://github.com/discourse/discourse/pull/23682](https://github.com/discourse/discourse/pull/23682)

---

_[View the full topic](https://meta.discourse.org/t/code-block-image-link-gets-modified-when-hotlinked-image-is-downloaded/271571)._
