RocketChat / RocketChat/Rocket.Chat

Unable to escapte katex formatting.

Open
#11,700 1 comment 0 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

From @yesennes on July 26, 2018 15:27

My Setup

  • Operating System: CentOS 7
  • App Version: 2.10.5
  • I have tested with the latest version
  • I can simulate the issue easily

Description

It is impossible to escape the \( sequence, making it impossible to send the text "\(a\)" in rocket chat without strange formatting.

Current Behavior

The \( is detected as the start of katex, and everything inside of it is formatted as katex. No amount of quotes or backslashes could disable this behavior

Expected Behavior

Some text, like \\( should create a literal \( without start katex formatting.

Copied from original issue: RocketChat/Rocket.Chat.Electron#788

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 file or test is named in the report. Reproduce the issue using the stated text and compare how escaped KaTeX sequences render with the expected literal text; done means the sequence can be sent without triggering KaTeX 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
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.