mirror of
https://github.com/DefectingCat/DefectingCat.github.io
synced 2025-07-15 16:51:37 +00:00
update format
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
import rehypePrism from '@mapbox/rehype-prism';
|
||||
import Image from 'components/mdx/image';
|
||||
import components from 'components/mdx/components';
|
||||
import PostCommnetLine from 'components/post/post-commnet-line';
|
||||
import PostToc from 'components/post/post-toc';
|
||||
@ -46,7 +47,7 @@ const Page = async ({
|
||||
},
|
||||
scope: data,
|
||||
},
|
||||
// components: components as {},
|
||||
components: { ...(components as {}) },
|
||||
});
|
||||
|
||||
return (
|
||||
|
@ -18,4 +18,4 @@ const components = {
|
||||
RUACodepen,
|
||||
};
|
||||
|
||||
export default components;
|
||||
export default components;
|
@ -19,4 +19,4 @@ const Image = ({ alt, ...rest }: Props) => {
|
||||
);
|
||||
};
|
||||
|
||||
export default memo(Image);
|
||||
export default memo(Image);
|
Reference in New Issue
Block a user