RocketChat / Rocket.Chat

The communications platform that puts data protection first.
https://rocket.chat/
Other
40.44k stars 10.53k forks source link

Blockquotes formatting is faulty in threads #27418

Open matthias4217 opened 1 year ago

matthias4217 commented 1 year ago

Description:

In blockquotes, the language name is shown as text in threads.

Steps to reproduce:

I have sent the following message in a conversation, then in a thread. A \ has been added in this issue before the triple backquotes, which is not present in the chat messages.

\```python
def my_function():
    trucà = 42
    return ""
\```

Expected behavior:

image

This is what I have in a conversation with myself. Everything looks fine.

Actual behavior:

image

This is what I get when posting the same block in a thread. The language name is displayed, and the syntax coloring doesn't work on the first line.

Server Setup Information:

Client Setup Information

Additional context

This should be referenced in https://github.com/RocketChat/Rocket.Chat/projects/57

henit-chobisa commented 1 year ago

Hey @matthias4217, I have noticed this behaviour too, I am keen to research on that!

Player256 commented 1 year ago

Hey, I tried this in my local setup.

def my_function():
    trucà = 42
    return "�"

pasted the above without the back-slash('\')[

https://user-images.githubusercontent.com/92082372/218271610-0ea18aa3-345e-4f28-856a-093ae39c55f2.mp4

](url)