+2
-2
app/(home)/page.tsx
+2
-2
app/(home)/page.tsx
···
33
33
import Faq from "./faq.component";
34
34
import Ratings from "./ratings.component";
35
35
import Stats from "./stats.component";
36
+
import { ApiV1TopguildsGetResponse } from "@/typings";
36
37
37
38
const montserrat = Montserrat({ subsets: ["latin"] });
38
39
const handwritten = Patrick_Hand({ subsets: ["latin"], weight: "400" });
···
370
371
style={{ backgroundColor: "rgb(43, 45, 49)" }}
371
372
>
372
373
<DiscordMessage {...messageProps()}>
373
-
<Highlight mode={"DARK"} text="Hey **@everyone**, Linus Tech Tips just posted a new video!" />
374
-
<Highlight mode={"DARK"} text="[https://www.youtube.com/watch?v=74Lj5cHseI8]()" />
374
+
<Highlight mode={"DARK"} text="Hey **@everyone**, Linus Tech Tips just posted a new video!\n[youtube.com/watch?v=74Lj5cHseI8]()" />
375
375
<DiscordMessageEmbed
376
376
mode="DARK"
377
377
title="Your PC Can Look Like THIS Now!"
+1
-1
components/discord/markdown.tsx
+1
-1
components/discord/markdown.tsx
···
24
24
function parseDiscordMarkdown(content: string) {
25
25
return content
26
26
.replace(/<(?!(?:[@#]|a:|:))/g, "<")
27
-
.replaceAll("\n", "\n")
27
+
.replaceAll("\\n", "\n\n")
28
28
.replace(/__(.*?)__/g, "<u>$1</u>")
29
29
.replace(/\{(\w*?)\.(\w*?)\}|{ping}/g, (match) => {
30
30
return renderToString(