prettier / prettier/plugin-pug
Add support for Frontmatter
Open
@Shinigami92 is already working on this.
Since Jun 9, 2022.
type: feature request
- Dominant language
- TypeScript
- Stars
- 208
- Forks
- 49
- Avg merge
- 4h 26m
- Merged PRs (30d)
- 8
Description
Plugin Version
v2.1.0
Prettier Version
v2.6.2
Which frameworks are affected?
- none
- vue
- angular
- svelte
Node Version
v18.3.0
Which operating systems have you used?
- Linux
- macOS
- Windows
Prettier config
{
}
Input
---
title: Hello world
---
doctype
html
head
title= title
body
h1 Hello world
Output or Error
- --
title: Hello world
- --
doctype
html
head
title= title
body
h1 Hello world
Expected Output
---
title: Hello world
---
doctype
html
head
title= title
body
h1 Hello world
Additional Context
This makes pug templates unusable in frameworks like eleventy, which parse and use the frontmatter keys.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.