diff --git a/src/components/MDX/MDXComponents.tsx b/src/components/MDX/MDXComponents.tsx index 5dc177a04cd..df6efc90a15 100644 --- a/src/components/MDX/MDXComponents.tsx +++ b/src/components/MDX/MDXComponents.tsx @@ -13,6 +13,7 @@ import {Children, useContext, useMemo} from 'react'; import * as React from 'react'; import cn from 'classnames'; import type {HTMLAttributes} from 'react'; +import NextImage from 'next/image'; import CodeBlock from './CodeBlock'; import {CodeDiagram} from './CodeDiagram'; @@ -514,8 +515,16 @@ function YouTubeIframe(props: any) { } function Image(props: any) { - const {alt, ...rest} = props; - return {alt}; + const {alt, width, height, ...rest} = props; + return ( + + ); } export const MDXComponents = {