-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Escaped Parentheses Followed by a Backslash Produces KaTeX Error in Chat #12336
Copy link
Copy link
Closed
Labels
area: ui/uxRelated to UI/UX, frontend code, accessibility, and user interactionRelated to UI/UX, frontend code, accessibility, and user interactionfeat: messagemessage renderingtype: bug
Description
Description:
Sending a string with escaped parentheses followed by a backslash produces a KaTeX parser error in chat.
Steps to reproduce:
- Enter the following string in chat:
\(\.*\)
Expected behavior:
The text \(\.*\) will appear in chat.
Actual behavior:
The error KaTeX parse error: Can't use function '\.' in math mode at position 1: \̲.̲* appears in chat.
Server Setup Information:
- Version of Rocket.Chat Server: 0.69.2
- Operating System: Ubuntu 18.04.1
- Deployment Method: Snap
- Number of Running Instances: 1
Additional context
It appears to be triggered by the backslash that immediately follows the escaped parentheses. Putting another character between the escaped parentheses and the backslash does not trigger the bug.
May be related to the following issues: #8640 #8644 #8676 #8970
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area: ui/uxRelated to UI/UX, frontend code, accessibility, and user interactionRelated to UI/UX, frontend code, accessibility, and user interactionfeat: messagemessage renderingtype: bug