Skip to content

Latest commit

 

History

History
46 lines (32 loc) · 948 Bytes

pr-7181.md

File metadata and controls

46 lines (32 loc) · 948 Bytes

Fix HTML formatting broken if the beginning tag starts after a list item (#7181 and #7220 by @sasurau4)

Previously, when Prettier formatted an HTML tag placed just after a list item, it would insert indent and break the relationship of open and close tag. Now, Prettier no longer changes anything.

<!-- Input -->
- A list item.
<details><summary>Summary</summary>
<p>

- A list item.

</p>
</details>

- A list item
  <blockquote>asdf</blockquote>

<!-- Prettier stable -->
- A list item.

  <details><summary>Summary</summary>
  <p>

- A list item.

</p>
</details>

- A list item
  <blockquote>asdf</blockquote>

<!-- Prettier master -->
- A list item.
<details><summary>Summary</summary>
<p>

- A list item.

</p>
</details>

- A list item
  <blockquote>asdf</blockquote>