From c23dbba1cac69bcb327d92611189cdf0413c28f4 Mon Sep 17 00:00:00 2001 From: Remco Haszing Date: Mon, 15 Apr 2024 11:55:10 +0200 Subject: [PATCH] Add rehype-mdx-import-media to the list of plugins `rehype-mdx-import-media` replaces `remark-mdx-images`. It supports more use cases, and works with other rehype plugins. --- docs/docs/extending-mdx.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/docs/extending-mdx.mdx b/docs/docs/extending-mdx.mdx index 3081a3887..3ceae4984 100644 --- a/docs/docs/extending-mdx.mdx +++ b/docs/docs/extending-mdx.mdx @@ -86,14 +86,14 @@ See also the [list of remark plugins][remark-plugins] and exposing top level identifiers in Next.js * [`remcohaszing/rehype-mdx-code-props`](https://github.com/remcohaszing/rehype-mdx-code-props) — interpret the code `meta` field as JSX props +* [`remcohaszing/rehype-mdx-import-media`](https://github.com/remcohaszing/rehype-mdx-import-media) + — change media sources to JavaScript imports * [`remcohaszing/rehype-mdx-title`](https://github.com/remcohaszing/rehype-mdx-title) — expose the page title as a string * [`pangelani/remark-mdx-chartjs`](https://github.com/pangelani/remark-mdx-chartjs) — replace fenced code blocks with charts using [`react-chartjs-2`](https://react-chartjs-2.js.org/). * [`remcohaszing/remark-mdx-frontmatter`](https://github.com/remcohaszing/remark-mdx-frontmatter) — change frontmatter (YAML) metadata to exports -* [`remcohaszing/remark-mdx-images`](https://github.com/remcohaszing/remark-mdx-images) - — change image sources to JavaScript imports * [`goodproblems/remark-mdx-math-enhanced`](https://github.com/goodproblems/remark-mdx-math-enhanced) — enhance math with JavaScript inside it