removed comments
This commit is contained in:
@@ -1,8 +1,6 @@
|
|||||||
import type { MDXComponents } from "mdx/types";
|
import type { MDXComponents } from "mdx/types";
|
||||||
import { ScrollArea } from "~/app/components/ui/scroll-area";
|
import { ScrollArea } from "~/app/components/ui/scroll-area";
|
||||||
|
|
||||||
// [Docs](https://nextjs.org/docs/pages/building-your-application/configuring/mdx#custom-elements)
|
|
||||||
|
|
||||||
export function useMDXComponents(
|
export function useMDXComponents(
|
||||||
defaultComponents: MDXComponents,
|
defaultComponents: MDXComponents,
|
||||||
): MDXComponents {
|
): MDXComponents {
|
||||||
@@ -16,11 +14,6 @@ export function useMDXComponents(
|
|||||||
</pre>
|
</pre>
|
||||||
),
|
),
|
||||||
a: (props) => <a target="_blank" rel="noopener noreferrer" {...props} />,
|
a: (props) => <a target="_blank" rel="noopener noreferrer" {...props} />,
|
||||||
// inlineCode: ({ children }) => (
|
|
||||||
// <code className="bg-blue-600">{children}</code>
|
|
||||||
// ),
|
|
||||||
// code: ({ children }) => <code className="bg-green-400">{children}</code>,
|
|
||||||
|
|
||||||
...defaultComponents,
|
...defaultComponents,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user