Markdown front matter is not parsed if the last value is omitted #6248
Labels
area:multiparser
Issues with printing one language inside another, like CSS-in-JS
lang:markdown
Issues affecting Markdown
lang:yaml
Issues affecting YAML
status:awaiting response
Issues that require answers to questions from maintainers before action can be taken
type:bug
Issues identifying ugly output, or a defect in the program
Prettier 1.18.2
Playground link
Input:
a few spaces after
b
Output:
no spaces after
b
Second Output:
Expected behavior:
b:\n---
is parsed just asb: \n---
orb: ~\n---
Swapping a and b (i.e. making so that the last line in YAML has value) helps avoid the exception. Also the same yaml in a separate file is formatted without problems.
The text was updated successfully, but these errors were encountered: