RocketChat / RocketChat/Rocket.Chat

Broken Formatting: Bold to Bold+Italic, loses underscores if text has specific symbols

Open
#30,595 13 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

message rendering type: bug
Dominant language
TypeScript
Stars
46.1k
Forks
13.9k
Avg merge
3d 3h
Merged PRs (30d)
130

Description

Issue Description
When customer is sending “ОЛ_1.2_2_00_ЭС” in bold or bold+Italic, the underscore disappears

Steps to Reproduce
use bold or bold+ italic when text hes underscore somewhere in the middle, example in the description
more details you can find in the discussion on Open server

Expected Behavior
Underscores should still be present when text in bold formatting

Actual Behavior
underscores disappearing

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 formatting issue with “ОЛ_1.2_2_00_ЭС” in bold and bold+italic, then trace the message formatting and rendering path. Done means underscores remain visible when the text contains symbols in the middle and is displayed with either formatting.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.