summaryrefslogtreecommitdiff
path: root/tests/testdata/fmt/badly_formatted.md
diff options
context:
space:
mode:
authorPig Fang <g-plane@hotmail.com>2024-08-15 04:58:48 +0800
committerGitHub <noreply@github.com>2024-08-14 22:58:48 +0200
commit3a3315cc7f3466ce229f6f150402d5ccf72b3d1d (patch)
treea0299679b2c1eb1cee496905caab380a95f22813 /tests/testdata/fmt/badly_formatted.md
parent22a834ff5b4b312b8f91be8991f2b495d49fad2f (diff)
feat(fmt): support HTML, Svelte, Vue, Astro and Angular (#25019)
This commit adds capability to format HTML, Svelte, Vue, Astro and Angular files. "--unstable-html" is required to format HTML files, and "--unstable-component" flag is needed to format other formats. These can also be specified in the config file. Close #25015
Diffstat (limited to 'tests/testdata/fmt/badly_formatted.md')
-rw-r--r--tests/testdata/fmt/badly_formatted.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/testdata/fmt/badly_formatted.md b/tests/testdata/fmt/badly_formatted.md
index 29d73b365..642918cea 100644
--- a/tests/testdata/fmt/badly_formatted.md
+++ b/tests/testdata/fmt/badly_formatted.md
@@ -53,3 +53,13 @@ function foo(): number {
```css
#app>.btn{ color : #000 }
```
+
+```html
+<div class=container > content </div>
+```
+
+```svelte
+<script lang=ts>
+let a:number
+</script>
+```