Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Unexpected backslash(\) is added when rendering codes #3460

Closed
2 of 3 tasks
KevenLi8888 opened this issue Dec 5, 2023 · 2 comments
Closed
2 of 3 tasks

[Bug] Unexpected backslash(\) is added when rendering codes #3460

KevenLi8888 opened this issue Dec 5, 2023 · 2 comments

Comments

@KevenLi8888
Copy link
Contributor

Describe the bug

An unexpected backslash(\) will be added when a number follows the dollar($) sign in inline codes and code blocks. This occurs to both user input and system output, and the redundant backslash(\) will be included when you try to copy the code.

I'm guessing this might be a conflict with the LaTex rendering.

image Screenshot 2023-12-05 at 15 29 48

To Reproduce

Use the following prompt:

Repeat the following with no modification:

**Unexpected Behavior: when a number follows the dollar($) sign**

`$2asdf`

```
$1
```

**Normal Behavior**

$1

`$asdf`

```
$ASDF
```
image

Expected behavior

See the image below:
image

Deployment

  • Docker
  • Vercel
  • Server

Desktop (please complete the following information):

  • OS: macOS 14.1 (23B74)
  • Browser: Chrome 119.0, Safari 17.1
  • Version: v2.9.12
@H0llyW00dzZ
Copy link
Contributor

@Dean-YZG
Copy link
Contributor

Dean-YZG commented Apr 9, 2024

Thank you for your feedback, the problem has now been resolved~~

@Dean-YZG Dean-YZG closed this as completed Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants