HTML 'strict' whitespace sometimes injecting a '>' #16184
Labels
lang:html
Issues affecting HTML (and SVG but not JSX)
status:needs investigation
Issues that need additional investigation, e.g. to understand whether the reported behavior is a bug
Prettier 3.2.5
Playground link
Input:
Output:
Expected output:
Why?
In html strict whitespace mode, Prettier is injecting a
>
character between the</p>
and the<pre>
, but only if:</p>
and<pre>
,<code>
) within the<pre>
block.I noticed this in Prettier 2.8.8 whilst working on NakedJSX, and the issue remains in Prettier 3.2.5.
The text was updated successfully, but these errors were encountered: