Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extension does not respect YAML front matter #3

Open
weaversam8 opened this issue Jun 26, 2019 · 2 comments
Open

Extension does not respect YAML front matter #3

weaversam8 opened this issue Jun 26, 2019 · 2 comments

Comments

@weaversam8
Copy link

If I'm editing a *.njk file using a static site generator like Eleventy, I have a need to include YAML front matter in the file, like so:

---
layout: main
---

<p>This is a page</p>

When I save, the YAML is compressed and made to be invalid, like so:

--- layout: main ---

<p>This is a page</p>

This is not ideal. Can we disable this behavior, or at least put it behind a checkbox?

@kristianfrost
Copy link

Any update on this?

@bbugh
Copy link

bbugh commented Sep 22, 2022

This one works as far as I can tell: https://marketplace.visualstudio.com/items?itemName=ginfuru.better-nunjucks

I don't use a lot of the features of this extension, but syntax highlighting and formatting is good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants