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

(YAML) Handling of '\' #4068

Open
hoehrmann opened this issue Jun 25, 2024 · 2 comments
Open

(YAML) Handling of '\' #4068

hoehrmann opened this issue Jun 25, 2024 · 2 comments
Labels
bug help welcome Could use help from community language

Comments

@hoehrmann
Copy link

Highlight.js seems to treat '\' in YAML as escaping the ' but with ' quoting the backslash does not escape the apostrophe in YAML.

image

@hoehrmann hoehrmann added bug help welcome Could use help from community language labels Jun 25, 2024
@joshgoebel
Copy link
Member

Can anything be escaped in single quoted YAML strings?

@hoehrmann
Copy link
Author

Can anything be escaped in single quoted YAML strings?

https://yaml.org/spec/1.2.2/#single-quoted-style covers this. The apostrophe can be escaped by doubling it. That's it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug help welcome Could use help from community language
2 participants