RocketChat / RocketChat/Rocket.Chat

Markdown code editing

Open
#23,636 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

invalid
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:
  1. Just type:
    ```for(;;)
    {
    printf("Hello!!");
    }```
    
Expected behaviour:

image

Actual behaviour:

image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.