From 4a2d3effa1f716c6b38acc99ab128c022549ee58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Ctalatkuyuk=E2=80=9D?= <“talatkuyuk@gmail.com”> Date: Mon, 19 Feb 2024 16:11:00 +0300 Subject: [PATCH 1/2] Add two new recma plugins into the docs --- docs/docs/extending-mdx.mdx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/docs/extending-mdx.mdx b/docs/docs/extending-mdx.mdx index 91eeb7167..5d679bf66 100644 --- a/docs/docs/extending-mdx.mdx +++ b/docs/docs/extending-mdx.mdx @@ -71,9 +71,13 @@ See also the [list of remark plugins][remark-plugins] and * [`remcohaszing/recma-export-filepath`](https://github.com/remcohaszing/recma-export-filepath) — export the filepath +* [`ipikuka/recma-mdx-change-props`](https://github.com/ipikuka/recma-mdx-change-props) + — changes the param as “\_props” in the function “\_createMdxContent” * [`domdomegg/recma-mdx-displayname`](https://github.com/domdomegg/recma-mdx-displayname) — add a `displayName` to `MDXContent` components, to enable switching on them in production +* [`ipikuka/recma-mdx-escape-missing-components`](https://github.com/ipikuka/recma-mdx-escape-missing-components) + — set the default value `()=>null` for the Components in case of missing * [`remcohaszing/recma-mdx-is-mdx-component`](https://github.com/remcohaszing/recma-mdx-is-mdx-component) — add an `isMdxComponent` field on MDX components * [`remcohaszing/recma-nextjs-static-props`](https://github.com/remcohaszing/recma-nextjs-static-props) From 62d75dbf9a1f0a4554d33968ef9c36d83f1b6f55 Mon Sep 17 00:00:00 2001 From: Titus Date: Tue, 20 Feb 2024 11:43:26 +0100 Subject: [PATCH 2/2] Apply suggestions from code review Signed-off-by: Titus --- docs/docs/extending-mdx.mdx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/docs/extending-mdx.mdx b/docs/docs/extending-mdx.mdx index 5d679bf66..03d817869 100644 --- a/docs/docs/extending-mdx.mdx +++ b/docs/docs/extending-mdx.mdx @@ -72,12 +72,13 @@ See also the [list of remark plugins][remark-plugins] and * [`remcohaszing/recma-export-filepath`](https://github.com/remcohaszing/recma-export-filepath) — export the filepath * [`ipikuka/recma-mdx-change-props`](https://github.com/ipikuka/recma-mdx-change-props) - — changes the param as “\_props” in the function “\_createMdxContent” + — changes the param as `_props` in the `_createMdxContent` function * [`domdomegg/recma-mdx-displayname`](https://github.com/domdomegg/recma-mdx-displayname) — add a `displayName` to `MDXContent` components, to enable switching on them in production * [`ipikuka/recma-mdx-escape-missing-components`](https://github.com/ipikuka/recma-mdx-escape-missing-components) - — set the default value `()=>null` for the Components in case of missing + — set a default value of `() => null` for missing components instead of + throwing an error * [`remcohaszing/recma-mdx-is-mdx-component`](https://github.com/remcohaszing/recma-mdx-is-mdx-component) — add an `isMdxComponent` field on MDX components * [`remcohaszing/recma-nextjs-static-props`](https://github.com/remcohaszing/recma-nextjs-static-props)