37Rb
(Ryan)
June 13, 2024, 10:32pm
1
It would be nice if the Chat window had full markdown support. Currently, it appears to intentionally not render markdown headers, as discussed here.
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.
3 Likes
Jagster
(Jakke Lehtonen)
June 14, 2024, 7:20am
4
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.
5 Likes
sam
(Sam Saffron)
June 14, 2024, 10:50am
5
We hear you and are thinking about this problem.
3 Likes
We now support headings in chat:
committed 09:11PM - 03 Nov 24 UTC
```
```
Will now be converted into their html versions: <h1>, <h2>, <h3>, ..… .
5 Likes
Jagster
(Jakke Lehtonen)
November 4, 2024, 1:18pm
7
Including ones that are copied/quoted to topics?
1 Like
After more consideration, headings will now be limited to messages done by bots (id < 0):
committed 01:27PM - 07 Nov 24 UTC
The markdown it rule "heading" will only be used when the message is done by a b… ot, which means an id < 0.
This commit also adds a is-bot css class on messages made by a bot, for finer control.
---------
Co-authored-by: Martin Brennan <mjrbrennan@gmail.com>
37Rb
(Ryan)
November 7, 2024, 1:39pm
10
Why? Is there a normal chat situation where people begin the line with # for another purpose? Just curious.
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.
2 Likes
sam
(Sam Saffron)
November 8, 2024, 4:44am
18
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.
2 Likes
37Rb
(Ryan)
November 8, 2024, 5:12am
19
We don’t need it for more general use. I was only asking out of curiosity.
sam
(Sam Saffron)
November 8, 2024, 5:15am
20
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.