RocketChat / RocketChat/Rocket.Chat
Markdown code editing
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 46.1k
- Forks
- 13.9k
- Avg merge
- 3d 3h
- Merged PRs (30d)
- 130
Description
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:
- Just type:
```for(;;) { printf("Hello!!"); }```
Expected behaviour:

Actual behaviour:

Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the exact triple-backtick input in the message composer and trace the Markdown editing or rendering path used by the text field. Done means code pasted immediately after the opening backticks is displayed as a formatted code block, matching the expected behavior shown in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- markdown
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100