We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a28d07 commit be2592eCopy full SHA for be2592e
docs/src/mdx-components.tsx
@@ -7,7 +7,15 @@ export function useMDXComponents(components: MDXComponents): MDXComponents {
7
if (href?.startsWith('/')) {
8
href = `/react-multi-page-form${href}`;
9
}
10
- return <a href={href} {...props} />;
+ return <a {...props} href={href} />;
11
+ },
12
+ img: (props) => {
13
+ let src = props.src as string;
14
+ if (src?.startsWith('/')) {
15
+ src = `/react-multi-page-form${src}`;
16
+ }
17
+ // biome-ignore lint/a11y/useAltText: <explanation>
18
+ return <img {...props} src={src} />;
19
},
20
...components,
21
};
0 commit comments