Skip to content

Doesn't Work With Frontmatter #22

Description

@skylerknight

This doesn't work when front-matter exists in a nunjucks/liquid file.

Running the plugin via "Format Document With..." throws the following error:

Screen Shot 2022-08-15 at 11 18 48 PM

Formatting on save simply doesn't change anything.
The file i'm working with looks like this:

---
layout: base
---

<div>
  {% slot 'main' %}

  <main class="grid-area-main p-5">
    {{ content | safe }}
  </main>

  {% endslot %}
</div>

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

    formatterIssues rooted in the abandoned prettydiff formatting engine

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions