diff --git a/pages/index.tsx b/pages/index.tsx
index 266cc65..bd045c4 100644
--- a/pages/index.tsx
+++ b/pages/index.tsx
@@ -10,22 +10,26 @@ import { getChannels } from "../data/channels";
import emoji from "emoji-dictionary";
import ReactMarkdown from "react-markdown";
-const emojiSupport = (text: { value: string }) => {
+const slackMarkdownRenderer = (text: { value: string }) => {
const emojiText = text.value.replace(/:\w+:/gi, (name) =>
emoji.getUnicode(name)
);
- return emojiText.split(/(<#[A-Z0-9]+\|[A-Za-z0-9]+>)/).map((str) => {
- const matches = str.match(/<#([A-Z0-9]+)\|([A-Za-z0-9]+)>/);
- if (matches) {
- return (
-
- {matches[2]}
-
- );
- }
- return str;
- });
+ return (
+
+ {emojiText.split(/(<#[A-Z0-9]+\|[A-Za-z0-9]+>)/).map((str) => {
+ const matches = str.match(/<#([A-Z0-9]+)\|([A-Za-z0-9]+)>/);
+ if (matches) {
+ return (
+
+ {matches[2]}
+
+ );
+ }
+ return str;
+ })}
+
+ );
};
export async function getStaticProps() {
@@ -161,7 +165,7 @@ const IndexContent = (props: IndexProps) => (