RocketChat / RocketChat/Rocket.Chat

can't escape special characters when composing messages.

Open
#26,580 4 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
46.1k
Forks
13.9k
Avg merge
3d 3h
Merged PRs (30d)
130

Description

right now the subset of markup the Rocket.Chat uses doesn't seem to be able to handle escaping control characters.
_ , *, ~,`[], etc. are special characters. If you wish to include those symbols in a message and not use them as control characters, you can't.

ex:

  • The files you are looking for are named: *.bat, *.sh, or *.py.

Will be transformed into:

  • The files you are looking for are named: .bat, .sh, or *.py.

An this text:

  • this is an italicized *: _*_

becomes:

  • this is an italicized :

when it should have been:

  • this is an italicized *: *

When will Rocket.Chat have proper support for markdown, including the ability (as we have here in Github) to escape control characters?

thanks.

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

No files or tests are identified in the issue. Start by locating Rocket.Chat's message markup parser or composer and reproduce the provided escaping examples; done means literal special characters remain literal while intended formatting continues to render correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
markdown
Domain
content
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.