-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Escaped parentheses in backticks break message #8970
Copy link
Copy link
Closed
Description
Description:
Escaped parentheses in backticks break horribly.
Server Setup Information:
- Version of Rocket.Chat Server: 0.59.3
- Operating System: GNU/Linux 3.2.0-4-amd64
- Deployment Method(snap/docker/tar/etc): unknown
- Number of Running Instances: 1
- DB Replicaset Oplog: OpLog disabled
- Node Version: v4.8.6
Steps to Reproduce:
Post message with escaped parenthesis in backticks, e.g.
`^\s*\((\w+)\)\s*$\`
Expected behavior:
See message with \( ... \) in code formatting, that is "^\s*\((\w+)\)\s*$".
Actual behavior:
The shown string (some base64?) changes with every edit, even if the message itself is not changed.
Workaround
This is apparently some bad interaction with KaTeX; disabling "Parenthesis Syntax" returns code formatting to the expected behaviour.
Dollar syntax does not seem to be affected in the same way.
KaTeX should be disabled inside pre-/code-formatted elements.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels

