Rocket.Chat icon indicating copy to clipboard operation
Rocket.Chat copied to clipboard

Blockquotes formatting is faulty in threads

Open matthias4217 opened this issue 2 years ago • 1 comments

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:

  • Version of Rocket.Chat Server: 5.3.3
  • Operating System: Official Rocketchat image, with microservices
  • Deployment Method: Docker Image in Openshift
  • Number of Running Instances: Several
  • DB Replicaset Oplog:
  • NodeJS Version: 14.19.3
  • MongoDB Version: 5.0.13

Client Setup Information

  • Desktop App or Browser Version: Desktop app and in browser
  • Operating System: Ubuntu 22.04

Additional context

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

matthias4217 avatar Dec 01 '22 09:12 matthias4217

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

henit-chobisa avatar Dec 01 '22 12:12 henit-chobisa

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)

Player256 avatar Feb 11 '23 17:02 Player256