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

Add documentation for "\" special character escape #672

Open
jeremygottfried opened this issue Jan 9, 2022 · 0 comments
Open

Add documentation for "\" special character escape #672

jeremygottfried opened this issue Jan 9, 2022 · 0 comments

Comments

@jeremygottfried
Copy link

I can't find where in the docs indicates that \ escapes special characters.

For example in react jsx, in order to get inline custom props to work, you need \ in front of closing curly braces.

This emmet expression:

div[style={{ padding: '0px'\}}]

Translates to:

<div style={{ padding: '0px'}}></div>

I am assuming this works for escaping any special character, but I can't find any mention of this in the docs.
I searched "literal", "special", "expression", "regex" and "escape" in the cheatsheet with no results. Escaping a special character is a common use case so this should be covered in the docs.

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

1 participant