---
name: MDX Plugins
route: /docs/mdx-plugins
parent: Documentation
menu: References
---

# Using MDX Plugins

Since MDX uses the [remark](https://github.com/remarkjs/remark)/[rehype](https://github.com/rehypejs/rehype) ecosystems, you can use plugins to modify your documents' AST on different stages of the process in order to make your documentation better.

Set `mdPlugins` for remark plugins and `hastPlugins` for rehype plugins inside your configuration file.

```js
import images from 'remark-images'
import emoji from 'remark-emoji'

export default {
  mdPlugins: [images, emoji],
}
```
