Skip to content

Commit

Permalink
Round markdown image edges.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tumppi066 committed Jan 1, 2025
1 parent 90c88c5 commit 0ebf211
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions components/page/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,15 @@ export function ETS2LAPage({ data, plugin, enabled, className }: { data: any, pl
</SyntaxHighlighter>
);
}
// Custom renderer for images
img({node, ...props}) {
return (
<img
{...props}
className="rounded-md"
/>
);
},
}} className={data.classname}>
{data}
</Markdown>
Expand Down

0 comments on commit 0ebf211

Please sign in to comment.