Skip to content

Commit e246c2e

Browse files
feat: add html glob
1 parent 23c7f22 commit e246c2e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

website/catalog/html/index.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,10 @@
22

33
This page curates a list of example ast-grep rules to check and to rewrite HTML code.
44

5-
<!--@include: ./upgrade-ant-design-vue.md-->
5+
:::tip Use HTML parser for frameworks
6+
You can leverage the [`languageGlobs`](/reference/sgconfig.html#languageglobs) option to parse framework files as plain HTML, such as `vue`, `svelte`, and `astro`.
7+
8+
**Caveat**: This approach may not parse framework-specific syntax, like Astro's [frontmatter script](https://docs.astro.build/en/basics/astro-components/#the-component-script) or [Svelte control flow](https://svelte.dev/docs/svelte/if). You will need to load [custom languages](/advanced/custom-language.html) for such cases.
9+
:::
10+
11+
<!--@include: ./upgrade-ant-design-vue.md-->

0 commit comments

Comments
 (0)