Skip to content

Commit

Permalink
fix: Markdown iframe width
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlancollins committed Jan 19, 2024
1 parent a67d702 commit d381bc7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/components/RenderMarkdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ const defaultComponents: Record<string, FC> = {
h4: makeHeading('h4'),
h5: makeHeading('h5'),
h6: makeHeading('h6'),
iframe: (props) => <iframe {...props} className="w-full" />,

Check warning on line 46 in app/components/RenderMarkdown.tsx

View workflow job for this annotation

GitHub Actions / PR

<iframe> elements must have a unique title property
code: ({ className = '', ...props }: React.HTMLProps<HTMLElement>) => {
return (
<code
Expand Down

0 comments on commit d381bc7

Please sign in to comment.