RocketChat / Rocket.Chat

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

Markdown code editing #23636

Open lostgirljourney opened 2 years ago

lostgirljourney commented 2 years ago

Description:

When we use backticks [`] three times for a code block and start writing code immediately, it doesn't show code in a formatted way. It just shows a simple text. I am a heavy discord user and generally habituated of writing codes in that way by copy-pasting code directly from editor to text field without giving any newline.

Steps to reproduce:

  1. Just type:
    ```for(;;)
    {
    printf("Hello!!");
    }```

Expected behaviour:

image

Actual behaviour:

image

dudanogueira commented 2 years ago

hi! I was not able to reproduce this bug.

tested on latest develop branch.

image

What version have you seen this behaviour?

lostgirljourney commented 2 years ago

https://user-images.githubusercontent.com/56036475/140600044-30f72e71-6bfc-45e5-bd01-7d7ced84cff9.mp4

I am using browsing rocket.chat on browser [Brave]. image

lostgirljourney commented 2 years ago

@dudanogueira please check the previous comment

debdutdeb commented 2 years ago

@lostgirljourney could you please check if you have the experimental parser enabled or not? If so try disabling that and retrying.

lostgirljourney commented 2 years ago

@debdutdeb is it "the message parser" enabled in settings, you mean?

debdutdeb commented 2 years ago

Yes

lostgirljourney commented 2 years ago

yes but then is it a problem @debdutdeb?

debdutdeb commented 2 years ago

Disable that and try the markdown thing again please.

lostgirljourney commented 2 years ago

sure @debdutdeb