# Full markdown support in Chat for bots

**URL:** https://meta.discourse.org/t/full-markdown-support-in-chat-for-bots/312003
**Category:** Feature
**Tags:** chat, completed, ai
**Created:** [June 13, 2024, 10:32pm UTC](https://meta.discourse.org/t/full-markdown-support-in-chat-for-bots/312003 "2024-06-13T22:32:13Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![37Rb](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/37rb/32/224158_2.png) [@37Rb](https://meta.discourse.org/u/37Rb)
#### Post date: [June 13, 2024, 10:32pm UTC](https://meta.discourse.org/t/full-markdown-support-in-chat-for-bots/312003/1 "2024-06-13T22:32:13Z")

</div>

It would be nice if the Chat window had full markdown support. Currently, it appears to intentionally not render markdown headers, as discussed here.

> [@Markdown headers aren't interpreted in Chat](https://meta.discourse.org/t/markdown-headers-arent-interpreted-in-chat/312000):
>
> The Chat window seems to interpret most markdown such as bold, italics, tables, lists, etc… but it doesn’t interpret headers. For example, if I post the following ### Hello This is a test. in a both topic and in a chat, it will render as a header in the topic but in the chat it will show the ### as 3 pound signs. Is this intentional? Or a possible issue?

I agree that most _people_ would not type markdown headers in a chat but LLMs might. As chatbots are becoming more common, it would be nice if any markdown sent by an LLM displayed correctly in the Chat window.

With RAG support bots in particular, the LLM receives raw post content from topics which may contain markdown headers. If it includes those headers in the chat reply, they don’t work as is.

---

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [June 14, 2024, 7:20am UTC](https://meta.discourse.org/t/full-markdown-support-in-chat-for-bots/312003/4 "2024-06-14T07:20:26Z")

</div>

My users are using AI mostly in chats (both DAI and Chatbot) and broken headers are a bit annoying. For me, ordinary users just don’t care 😏

But what bugs me the most is when I copy those chat messages to a topic those quoted headers stay broken.

---

<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: [June 14, 2024, 10:50am UTC](https://meta.discourse.org/t/full-markdown-support-in-chat-for-bots/312003/5 "2024-06-14T10:50:00Z")

</div>

We hear you and are thinking about this problem.

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [November 4, 2024, 1:13pm UTC](https://meta.discourse.org/t/full-markdown-support-in-chat-for-bots/312003/6 "2024-11-04T13:13:51Z")

</div>

We now support headings in chat:

[https://github.com/discourse/discourse/commit/279fc846db1057dc9e3ee1674e3d909db1ee814a](https://github.com/discourse/discourse/commit/279fc846db1057dc9e3ee1674e3d909db1ee814a)

---

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [November 4, 2024, 1:18pm UTC](https://meta.discourse.org/t/full-markdown-support-in-chat-for-bots/312003/7 "2024-11-04T13:18:46Z")

</div>

Including ones that are copied/quoted to topics?

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [November 4, 2024, 1:28pm UTC](https://meta.discourse.org/t/full-markdown-support-in-chat-for-bots/312003/8 "2024-11-04T13:28:07Z")

</div>

Yes it will work

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [November 7, 2024, 1:36pm UTC](https://meta.discourse.org/t/full-markdown-support-in-chat-for-bots/312003/9 "2024-11-07T13:36:04Z")

</div>

After more consideration, headings will now be limited to messages done by bots (id \< 0):

[https://github.com/discourse/discourse/commit/5010fced92438d9bb3f19aa7d15f1e5f670a26ac](https://github.com/discourse/discourse/commit/5010fced92438d9bb3f19aa7d15f1e5f670a26ac)

---

<div class="post-metadata">

### Author: ![37Rb](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/37rb/32/224158_2.png) [@37Rb](https://meta.discourse.org/u/37Rb)
#### Post date: [November 7, 2024, 1:39pm UTC](https://meta.discourse.org/t/full-markdown-support-in-chat-for-bots/312003/10 "2024-11-07T13:39:37Z")

</div>

Why? Is there a normal chat situation where people begin the line with # for another purpose? Just curious.

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [November 7, 2024, 1:42pm UTC](https://meta.discourse.org/t/full-markdown-support-in-chat-for-bots/312003/11 "2024-11-07T13:42:14Z")

</div>

In our rapid tests it’s been abused by people. Also platforms like slack don’t support it. For now we see more cons than pros.

---

<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: [November 8, 2024, 4:44am UTC](https://meta.discourse.org/t/full-markdown-support-in-chat-for-bots/312003/18 "2024-11-08T04:44:01Z")

</div>

Ryan I would like to close this as completed, I am renaming to

“Full markdown support in Chat for bots”

Totally open to open another topic here for more general use, but the original request was mostly centered around bots.

---

<div class="post-metadata">

### Author: ![37Rb](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/37rb/32/224158_2.png) [@37Rb](https://meta.discourse.org/u/37Rb)
#### Post date: [November 8, 2024, 5:12am UTC](https://meta.discourse.org/t/full-markdown-support-in-chat-for-bots/312003/19 "2024-11-08T05:12:19Z")

</div>

We don’t need it for more general use. I was only asking out of curiosity.

---

<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: [November 8, 2024, 5:15am UTC](https://meta.discourse.org/t/full-markdown-support-in-chat-for-bots/312003/20 "2024-11-08T05:15:25Z")

</div>

I guess maths is going to be another tricky problem… cause that can be pretty common as well

But its a rabbit hole cause GPT4-o can refuse to make mathjax so we would also need a another decoder specially for this.

---

<div class="post-metadata">

### Author: ![roke\_julian\_lockhart](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/roke_julian_lockhart/32/540179_2.png) [@roke\_julian\_lockhart](https://meta.discourse.org/u/roke_julian_lockhart)
#### Post date: [May 31, 2026, 10:52pm UTC](https://meta.discourse.org/t/full-markdown-support-in-chat-for-bots/312003/21 "2026-05-31T22:52:06Z")

</div>

> [@sam](#):
>
> Totally open to open another topic here for more general use, but the original request was mostly centered around bots.

Does such a topic exist? If not, might I create one?

> ****
>
> …not least, to support migrations:
> 
> > [@Chat vs Messages](https://meta.discourse.org/t/chat-vs-messages/336765/1):
> >
> > Is there a way to migrate Messages into Chats/DMs so communications are all in one place?

(Until it supports all of Discourse’s Markdown, it’s useless to me.)
