Previous versions would not print this comment, this has been fixed in this version.
// Input
const comp = (
<Foo<number>
// This comment goes missing
value={4}
>
Test
</Foo>
);
// Output (Prettier stable)
const comp = <Foo<number> value={4}>Test</Foo>;
// Output (Prettier master)
const comp = (
<Foo<number>
// This comment goes missing
value={4}
>
Test
</Foo>
);Handlebars: Avoid adding unwanted line breaks between text and mustaches (#6186 by @gavinjoyce)
Previously, Prettier added line breaks between text and mustaches which resulted in unwanted whitespace in rendered output.
Handlebars: Improve comment formatting ([#6206] by @gavinjoyce)
Previously, Prettier would sometimes ignore whitespace when formatting comments.