Skip to content

Commit

Permalink
Add name of Meower emoji as their title text
Browse files Browse the repository at this point in the history
  • Loading branch information
mybearworld committed Oct 10, 2024
1 parent d58dec2 commit bf3e48f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/components/Markdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -206,18 +206,18 @@ export const Markdown = (mdProps: MarkdownProps) => {
);
}
if (match.groups?.nativeEmojiID) {
const name = mdProps.knownEmoji?.find(
(e) => e._id === match.groups?.nativeEmojiID,
)?.name;
return (
<img
className={twMerge(
"inline-block",
isBig ? "h-9" : "h-6",
)}
src={`https://uploads.meower.org/emojis/${encodeURIComponent(match.groups.nativeEmojiID)}`}
alt={
mdProps.knownEmoji?.find(
(e) => e._id === match.groups?.nativeEmojiID,
)?.name
}
alt={name}
title={name}
/>
);
}
Expand Down

0 comments on commit bf3e48f

Please sign in to comment.