RocketChat / Rocket.Chat

The communications platform that puts data protection first.
https://rocket.chat/
Other
40.39k stars 10.51k forks source link

Unable to escapte katex formatting. #11700

Open tassoevan opened 6 years ago

tassoevan commented 6 years ago

From @yesennes on July 26, 2018 15:27

My Setup

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

lucidBrot commented 6 years ago

As a temporary workaround, I use the zero width space character between the backslash and the bracket