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 1c4ec68 commit 2b8d965Copy full SHA for 2b8d965
src/components/Markdown.tsx
@@ -91,10 +91,11 @@ const markdownComponents: Record<string, React.FC> = {
91
iframe: (props) => (
92
<iframe {...props} className="w-full" title="Embedded Content" />
93
),
94
- img: ({ ...props }: HTMLProps<HTMLImageElement>) => (
95
- // eslint-disable-next-line jsx-a11y/alt-text
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
+ img: ({ children, alt, ...props }: HTMLProps<HTMLImageElement>) => (
96
<img
97
{...props}
98
+ alt={alt ?? ''}
99
className={`max-w-full h-auto rounded-lg shadow-md ${
100
props.className ?? ''
101
}`}
0 commit comments