Skip to content

Escaping of mustaches ignored #106

Description

@nknapp

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions