forked from nodejs/nodejs.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.mdx.use.mjs
31 lines (28 loc) · 901 Bytes
/
next.mdx.use.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
'use strict';
import NodeApiVersionLinks from './components/Docs/NodeApiVersionLinks';
import DownloadReleasesTable from './components/Downloads/DownloadReleasesTable';
import Banner from './components/Home/Banner';
import HomeDownloadButton from './components/Home/HomeDownloadButton';
import Link from './components/Link';
import { WithNodeRelease } from './components/withNodeRelease';
/**
* A full list of React Components that we want to passthrough to MDX
*
* @type {import('mdx/types').MDXComponents}
*/
export const mdxComponents = {
NodeApiVersionLinks,
WithNodeRelease,
HomeDownloadButton,
DownloadReleasesTable,
Banner,
};
/**
* A full list of wired HTML elements into custom React Components
*
* @type {import('mdx/types').MDXComponents}
*/
export const htmlComponents = {
a: Link,
blockquote: ({ children }) => <div className="highlight-box">{children}</div>,
};