@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.
- package/package.json +1 -1
- package/readme.md +6 -7
package/package.json
CHANGED
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
|
-
//
|
|
109
|
-
|
|
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
|
|