Skip to content

Single Placeholder escaping is removed during formatting #54

@AngusMorton

Description

@AngusMorton

Single escaping of placeholders is lost during formatting. This seems like a bug because it changes the meaning of the output (AFAIK), but the tests indicate it's expected.

From the tests (placeholders-body-escaped.marko):

<div>
    Hello \${data.name}!
    Messages: \$!{data.messagesHtml}
</div>

Is formatted into (placeholders-body-escaped.expected/html.marko):

<div>Hello ${data.name}! Messages: $!{data.messagesHtml}</div>

I would have expected the escaping of the placeholder to be preserved in the formatted code:

<div>Hello \${data.name}! Messages: \$!{data.messagesHtml}</div>

I'm happy to work on a fix if this is indeed a bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions