Handlebars: Stop formatting <style lang=""> as CSS (#20031)

Co-authored-by: fisker <lionkay@gmail.com>
This commit is contained in:
Konv Suuandfisker authored and GitHub committed 2026-09-11 16:09:34 +08:00
1 parent 691525df47
commit 7ed24db8e2
6 files changed
+89 -53

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
#### Don't format `<style lang="">` as CSS (#20031 by @kovsu)
<!-- prettier-ignore -->
```hbs
{{! Input }}
<style lang="">
.a { color: red;
}
</style>
{{! Prettier stable }}
<style lang="">
.a {
color: red;
}
</style>
{{! Prettier main }}
<style lang="">
.a { color: red;
}
</style>
```