# Table editor breaks embedded images

**URL:** https://meta.discourse.org/t/table-editor-breaks-embedded-images/314831
**Category:** Bug
**Tags:** table-builder, fixed
**Created:** [July 3, 2024, 5:16pm UTC](https://meta.discourse.org/t/table-editor-breaks-embedded-images/314831 "2024-07-03T17:16:08Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![lindsey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lindsey/32/318210_2.png) [@lindsey](https://meta.discourse.org/u/lindsey)
#### Post date: [July 3, 2024, 5:16pm UTC](https://meta.discourse.org/t/table-editor-breaks-embedded-images/314831/1 "2024-07-03T17:16:08Z")

</div>

## ℹ Overview

Currently, you can embed images in tables if you escape any `|` in the alt text with a `\` (e.g., `![image\|100x100]`). However, if you open the table editor, the `\` is dropped and the image is broken.

## 🚶‍♀️ Steps to reproduce

1. In a post, create a table and insert an image, escaping the `|` in the alt text with an `\`.

2. Save the post. The image should render properly in the table.

3. Click the pencil icon to open the table editor. You can see at this point that the `/` has been dropped from the image alt text.  
 ![CleanShot 2024-07-03 at 13.10.22](https://global.discourse-cdn.com/meta/original/4X/b/7/d/b7dd56a8eea4c8104c5e38b8c7b1ed6124226e9d.png)

4. Click Save.

## ✅ Expected results

The image should display as expected. The `\` should not be dropped from the image alt text upon opening the table editor.

## ❌ Observed results

The `\` is dropped from the alt text and the image is broken.

## 📚 Additional context

🎥 Recording:

---

_[View the full topic](https://meta.discourse.org/t/table-editor-breaks-embedded-images/314831)._
