Skip to content

Commit dfdcb50

Browse files
authoredJun 30, 2024··
Fix to recommend rehype-mdx-code-props
Closes Gh-2501. Reviewed-by: Remco Haszing <remcohaszing@gmail.com> Reviewed-by: Christian Murphy <christian.murphy.42@gmail.com> Reviewed-by: Titus Wormer <tituswormer@gmail.com>
1 parent f12afda commit dfdcb50

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed
 

‎docs/guides/syntax-highlighting.mdx

+5-5
Original file line numberDiff line numberDiff line change
@@ -150,13 +150,13 @@ the format of that meta string is, so it defaults to how markdown handles it:
150150
`meta` is ignored.
151151

152152
But what if you want to access `meta` at runtime?
153-
That’s exactly what the remark plugin
154-
[`remark-mdx-code-meta`][remark-mdx-code-meta] does.
153+
That’s exactly what the rehype plugin
154+
[`rehype-mdx-code-props`][rehype-mdx-code-props] does.
155155
It lets you type JSX attributes in the `meta` part which you can access by
156156
with a component for `pre`.
157157

158-
That plugin, like all remark plugins, can be passed as
159-
[`remarkPlugins` in `ProcessorOptions`][processor-options].
158+
That plugin, like all rehype plugins, can be passed as
159+
[`rehypePlugins` in `ProcessorOptions`][processor-options].
160160
More info on plugins is available in [§ Extending MDX][extend]
161161

162162
[commonmark]: https://spec.commonmark.org/current/
@@ -167,7 +167,7 @@ More info on plugins is available in [§ Extending MDX][extend]
167167

168168
[react-syntax-highlighter]: https://github.com/react-syntax-highlighter/react-syntax-highlighter
169169

170-
[remark-mdx-code-meta]: https://github.com/remcohaszing/remark-mdx-code-meta
170+
[rehype-mdx-code-props]: https://github.com/remcohaszing/rehype-mdx-code-props
171171

172172
[processor-options]: /packages/mdx/#processoroptions
173173

0 commit comments

Comments
 (0)
Please sign in to comment.