Back to Prettier

19304

changelog_unreleased/html/19304.md

3.9.0283 B
Original Source

Keep an inline comment attached to the preceding node (#19304 by @kovsu)

<!-- prettier-ignore -->
html
<!-- Input -->
<p><b>x</b><!-- comment --></p>

<!-- Prettier stable -->
<p>
  <b>x</b
  ><!-- comment -->
</p>

<!-- Prettier main -->
<p><b>x</b><!-- comment --></p>