Back to Prettier

19465

changelog_unreleased/angular/19465.md

3.9.0470 B
Original Source

Support comments in html element (#19465 by @fisker)

<!-- prettier-ignore -->
html
<!-- Input -->
<div
  // comment 0
  /* comment 1 */
  attr1="value1"
  /*
     comment 2
     spanning multiple lines
  */
  attr2="value2"
></div>

<!-- Prettier stable -->
<div attr1="value1" attr2="value2"></div>

<!-- Prettier main -->
<div
  // comment 0
  /* comment 1 */
  attr1="value1"
  /*
     comment 2
     spanning multiple lines
  */
  attr2="value2"
></div>