Skip to content

Commit

Permalink
i hope this fixes it
Browse files Browse the repository at this point in the history
  • Loading branch information
nmsderp authored Mar 3, 2024
1 parent 65be0ca commit a2eafbf
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/components/tw-description/description.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,8 @@ const decorate = text => {

// Replace text surrounded by colons with markdown image syntax
newText = reactStringReplace(newText, /:(.*?):/g, (match, i) => (
<img
src={`https://snail-ide-object-libraries.vercel.app/files/emojis/${match}.png`}
alt={match}
title={match}
key={`emoji-${i}`} // Ensure each key is unique
/>
));
`![](${'https://snail-ide-object-libraries.vercel.app/files/emojis/' + match}.png)`
));

return newText;
};
Expand Down

0 comments on commit a2eafbf

Please sign in to comment.