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

Incorrect escaping behavior #1382

Closed
4 tasks done
franckchen opened this issue Nov 10, 2024 · 2 comments
Closed
4 tasks done

Incorrect escaping behavior #1382

franckchen opened this issue Nov 10, 2024 · 2 comments
Labels
🤷 no/invalid This cannot be acted upon 👎 phase/no Post cannot or will not be acted on

Comments

@franckchen
Copy link

Initial checklist

Affected packages and versions

[email protected]

Link to runnable example

https://stackblitz.com/edit/github-orec8z?file=src%2Fmain.ts

Steps to reproduce

https://stackblitz.com/edit/github-orec8z?file=src%2Fmain.ts

When multiple escape characters appear, the escape characters are lost.

For example, if the markdown content is \[, the result is [, and a \ is missing.

Even when the input is \[, the output is still [

Expected behavior

 Output [

Actual behavior

Output [

Affected runtime and version

node>18

Affected package manager and version

No response

Affected OS and version

No response

Build and bundle tools

No response

@github-actions github-actions bot added 👋 phase/new Post is being triaged automatically 🤞 phase/open Post is being triaged manually and removed 👋 phase/new Post is being triaged automatically labels Nov 10, 2024
@wooorm
Copy link
Member

wooorm commented Nov 11, 2024

Please take some time to understand the language (JavaScript) you are using.

You are using a string.

That character in strings has a certain meaning.

@wooorm wooorm closed this as not planned Won't fix, can't repro, duplicate, stale Nov 11, 2024
@wooorm wooorm added the 🤷 no/invalid This cannot be acted upon label Nov 11, 2024

This comment has been minimized.

@github-actions github-actions bot added 👎 phase/no Post cannot or will not be acted on and removed 🤞 phase/open Post is being triaged manually labels Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤷 no/invalid This cannot be acted upon 👎 phase/no Post cannot or will not be acted on
Development

No branches or pull requests

2 participants