Skip to content
This repository has been archived by the owner on Dec 1, 2024. It is now read-only.

Commit

Permalink
Do 2de5c41 typesafely
Browse files Browse the repository at this point in the history
  • Loading branch information
mybearworld committed Jun 15, 2024
1 parent 2de5c41 commit 0920b51
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/Markdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,9 @@ export const Markdown = (mdProps: MarkdownProps) => {
return <Link href={href} text={text} />;
},
image: (src, alt, title) =>
mdProps.inline ? undefined : hostWhitelist.some((host) =>
src.startsWith(host),
) ? (
mdProps.inline ? (
<></>
) : hostWhitelist.some((host) => src.startsWith(host)) ? (
<img
src={src}
alt={alt}
Expand Down

0 comments on commit 0920b51

Please sign in to comment.