mirror of
https://github.com/cupcakearmy/memoir.git
synced 2025-09-10 01:40:39 +00:00
update to nextra 4
This commit is contained in:
12
mdx-components.ts
Normal file
12
mdx-components.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { useMDXComponents as getThemeComponents } from "nextra-theme-docs"; // nextra-theme-blog or your custom theme
|
||||
|
||||
// Get the default MDX components
|
||||
const themeComponents = getThemeComponents();
|
||||
|
||||
// Merge components
|
||||
export function useMDXComponents(components = {}) {
|
||||
return {
|
||||
...themeComponents,
|
||||
...components,
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user