Skip to content

Support prettier-ignore in jinja comments #1236

Description

@jcharaoui

Is your feature request related to a problem? Please describe.
I'd like to use a prettier-ignore statement in my Lektor jinja templates, but the example {% # prettier-ignore %} doesn't work for me: when compiling, the template the engine complains about # being an unexpected character.

Describe the solution you'd like
I tried using {# prettier-ignore #} but it doesn't work, even though {# #} seems like the currently supported method of inserting comments in jinja templates.

Describe alternatives you've considered
I found a workaround which consists of {# {% # prettier-ignore %} #} and works, but I hope you'll agree, is ugly as heck.

Checklist

  • I have checked and made sure that the proposal adheres to this plugin's principles

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions