Skip to content

Commit

Permalink
docs: add recmaPlugins to README
Browse files Browse the repository at this point in the history
  • Loading branch information
bholmesdev committed Oct 21, 2022
1 parent a4ba369 commit ac97b43
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/integrations/mdx/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,12 @@ export default {
}
```
### recmaPlugins
These are plugins that modify the output [estree](https://github.com/estree/estree) directly. This is useful for modifying or injecting JavaScript variables in your MDX files.
We suggest [using AST Explorer](https://astexplorer.net/) to play with estree outputs, and trying [`estree-util-visit`](https://unifiedjs.com/explore/package/estree-util-visit/) for searching across JavaScript nodes.
## Examples
- The [Astro MDX example](https://github.com/withastro/astro/tree/latest/examples/with-mdx) shows how to use MDX files in your Astro project.
Expand Down

0 comments on commit ac97b43

Please sign in to comment.