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

Commit

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

0 comments on commit 2de5c41

Please sign in to comment.