Skip to content

Commit 3ae2d8d

Browse files
backflipsarah11918
andauthored
[MDX] Update remarkRehype docs in README
Co-authored-by: Sarah Rainsberger <[email protected]>
1 parent 359d944 commit 3ae2d8d

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

packages/integrations/mdx/README.md

+13-2
Original file line numberDiff line numberDiff line change
@@ -520,9 +520,20 @@ We suggest [using AST Explorer](https://astexplorer.net/) to play with estree ou
520520
521521
### remarkRehype
522522
523-
Options for `remarkRehype`. See [markdown.remarkRehype](https://docs.astro.build/en/reference/configuration-reference/#markdownremarkrehype).
523+
Markdown content is transformed into HTML through remark-rehype which has [a number of options](https://github.com/remarkjs/remark-rehype#options).
524524
525-
When `extendPlugins` is set to `'markdown'` (default), this config is extended with `remarkRehype` from Astro's default markdown config.
525+
You can use remark-rehype options in your MDX integration config file like so:
526+
527+
```js
528+
// astro.config.mjs
529+
export default {
530+
integrations: [mdx({
531+
remarkRehype: {
532+
footnoteLabel: 'Catatan kaki',
533+
footnoteBackLabel: 'Kembali ke konten',
534+
},
535+
})],
536+
};
526537

527538
## Examples
528539

0 commit comments

Comments
 (0)