prettier-plugin-astro
prettier-plugin-astro copied to clipboard
🐛 BUG: HTML formatting exception: </html> tag output error
Describe the Bug
Example cdoe:
<html>
<head></head>
<body></body>
</html>
Formatting Results:
<html>
<head></head>
<body></body></html
>
Steps to Reproduce
.prettierrc.json:
{
"htmlWhitespaceSensitivity": "strict",
"plugins": ["prettier-plugin-astro"]
}
This problem occurs when prettier's htmlWhitespaceSensitivity is configured as strict
i have the same issue , any solution? The problem occurs with both strict and css . ignore works fine
i have the same issue , any solution? The problem occurs with both strict and css . ignore works fine
Temporary fix:
{
"htmlWhitespaceSensitivity": "strict",
"plugins": ["prettier-plugin-astro"],
"overrides": [
{
"files": "*.astro",
"options": {
"htmlWhitespaceSensitivity": "ignore"
}
}
]
}