From ac97b43274d240ff87d3acafda782ae7cb9d2a07 Mon Sep 17 00:00:00 2001 From: bholmesdev Date: Fri, 21 Oct 2022 10:34:08 -0400 Subject: [PATCH] docs: add recmaPlugins to README --- packages/integrations/mdx/README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/integrations/mdx/README.md b/packages/integrations/mdx/README.md index 57acc5c8cb8f2..0a5f345728c9a 100644 --- a/packages/integrations/mdx/README.md +++ b/packages/integrations/mdx/README.md @@ -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.