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

Escaping of mustaches ignored #106

Open
nknapp opened this issue Oct 13, 2019 · 0 comments
Open

Escaping of mustaches ignored #106

nknapp opened this issue Oct 13, 2019 · 0 comments

Comments

@nknapp
Copy link

nknapp commented Oct 13, 2019

In Handlebars, a backslash can be used to prevent a mustache from being evaluated. Such a mustache is essentially text.

\{{no-expression}} {{expression}}

\{{{no-expression}}} {{expression}}

\{{#no}} block \{{/no}} {{expression}}

\{{\{{no}}}} block \{{\{{/no}}}} {{expression}}

see jsfiddle demonstrating the usage

I noticed that at least in GitHub markdown, the escaped mustaches are displayed just like regular expressions.

I came across this behavior when I made a similar pull request for highlight.js, it has not urgency for me. I just wanted to report it.

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