# Category Description Bug when Editing

**URL:** <https://meta.discourse.org/t/category-description-bug-when-editing/296215>\
**Category:** Bug\
**Created:** [February 21, 2024, 6:17pm UTC](https://meta.discourse.org/t/category-description-bug-when-editing/296215 "2024-02-21T18:17:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![twofoursixeight](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/twofoursixeight/32/574822_2.png) [@twofoursixeight](https://meta.discourse.org/u/twofoursixeight)\
**Post date:** [February 21, 2024, 6:17pm UTC](https://meta.discourse.org/t/category-description-bug-when-editing/296215/1 "2024-02-21T18:17:35Z")

</div>

This bug causes it to display an error but it actually ends up editing it. It then tells me about edit conflict. It can get annoying when editing the description of categories.

Reproduction:

1. Edit the category description. Make it a header, using `#`.  
 ![image](https://global.discourse-cdn.com/meta/original/4X/7/4/b/74bc9955256612d0a51f606bf83f68600c90589e.png)
2. Click on “Save Edit” and the following error occurs:  
 ![image](https://global.discourse-cdn.com/meta/original/4X/7/5/d/75d978b12cfbacf12fe65b5f71a4765e3648927b.png)

Despite the error, the edits save.  
3. Try to edit it again. In the corner, it tells you about edit conflict.  
4. This would result in this error:

 ![image](https://global.discourse-cdn.com/meta/original/4X/6/2/a/62a186adb2095b6c5f54229a36889e1e40af7c79.png)  
It also saves that edit as well.

Video:

---

<div class="post-metadata">

**Author:** ![justanotherperson](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/justanotherperson/32/366969_2.png) [@justanotherperson](https://meta.discourse.org/u/justanotherperson)\
**Post date:** [February 21, 2024, 8:47pm UTC](https://meta.discourse.org/t/category-description-bug-when-editing/296215/2 "2024-02-21T20:47:06Z")

</div>

Just discard the draft. Also, I tested this (since we’re on the same forum, go check for those ellipses that wasn’t there before).

---

<div class="post-metadata">

**Author:** ![Richie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/richie/32/115110_2.png) [@Richie](https://meta.discourse.org/u/Richie)\
**Post date:** [February 21, 2024, 9:09pm UTC](https://meta.discourse.org/t/category-description-bug-when-editing/296215/3 "2024-02-21T21:09:53Z")

</div>

I can repro this on 3.3.0.beta1-dev ([5935148bd8](https://github.com/discourse/discourse/commits/5935148bd863ea80865cee1049b3a44f3fbf3cc8))

Taking the `#` away allows it to save the edits just fine, putting the `#` back in again throws the error.

Nothing is captured in my `/logs`.

 ![Screenshot 2024-02-21 at 21.07.50](https://global.discourse-cdn.com/meta/original/4X/8/6/7/867358fc5b32ac5f1097c0db7b2f900a8f5c5d1b.png)
