vscode-pretty-formatter icon indicating copy to clipboard operation
vscode-pretty-formatter copied to clipboard

Doesn't Work With Frontmatter

Open skylerknight opened this issue 2 years ago • 0 comments

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>

skylerknight avatar Aug 16 '22 04:08 skylerknight