Skip to content

feat(html): support front matter#5110

Merged
ikatyang merged 4 commits intoprettier:masterfrom
ikatyang:feat/html/yaml-front-matter
Sep 19, 2018
Merged

feat(html): support front matter#5110
ikatyang merged 4 commits intoprettier:masterfrom
ikatyang:feat/html/yaml-front-matter

Conversation

@ikatyang
Copy link
Copy Markdown
Member

@ikatyang ikatyang commented Sep 19, 2018

  • format yaml front matter
  • preserve toml front matter

Prettier pr-5110
Playground link

--parser parse5

Input:

---
hello:      world
---
  
<html><head></head><body></body></html>

Output:

---
hello: world
---

<html>
  <head></head>
  <body></body>
</html>

  • I’ve added tests to confirm my change works.
  • (If changing the API or CLI) I’ve documented the changes I’ve made (in the docs/ directory)
  • I’ve read the contributing guidelines.

@ikatyang ikatyang mentioned this pull request Sep 19, 2018
26 tasks
@ikatyang ikatyang merged commit 8ddff07 into prettier:master Sep 19, 2018
@ikatyang ikatyang deleted the feat/html/yaml-front-matter branch September 19, 2018 14:10
@ikatyang ikatyang added this to the 1.15 milestone Oct 25, 2018
@lock lock bot added the locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting. label Jan 23, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jan 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants