@next/mdx 15.4.2-canary.2 → 15.4.2-canary.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/readme.md +6 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next/mdx",
3
- "version": "15.4.2-canary.2",
3
+ "version": "15.4.2-canary.20",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "repository": {
package/readme.md CHANGED
@@ -105,14 +105,13 @@ yarn add @next/mdx
105
105
  Create an `mdx-components.js` file at the root of your project with the following contents:
106
106
 
107
107
  ```js
108
- // This file is required to use @next/mdx in the `app` directory.
109
- export function useMDXComponents(components) {
108
+ // Allows customizing built-in components, e.g. to add styling.
109
+ const components = {
110
+ // h1: ({ children }) => <h1 style={{ fontSize: "100px" }}>{children}</h1>,
111
+ }
112
+
113
+ export function useMDXComponents() {
110
114
  return components
111
- // Allows customizing built-in components, e.g. to add styling.
112
- // return {
113
- // h1: ({ children }) => <h1 style={{ fontSize: "100px" }}>{children}</h1>,
114
- // ...components,
115
- // }
116
115
  }
117
116
  ```
118
117