Skip to content

Escaping of mustaches ignored #106

@nknapp

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.

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