From 8a2826da9111fb9ddd774ff1feb8344cd74d817b Mon Sep 17 00:00:00 2001 From: Paul Makles Date: Fri, 10 Jun 2022 17:36:59 +0100 Subject: [PATCH] fix: use `class` in markdown rendering --- src/components/common/Emoji.tsx | 2 +- src/components/markdown/Renderer.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/common/Emoji.tsx b/src/components/common/Emoji.tsx index efd06b65..9be2e8fd 100644 --- a/src/components/common/Emoji.tsx +++ b/src/components/common/Emoji.tsx @@ -73,7 +73,7 @@ export default function Emoji({ } export function generateEmoji(emoji: string) { - return `${emoji}`; } diff --git a/src/components/markdown/Renderer.tsx b/src/components/markdown/Renderer.tsx index 735a5ff5..57070002 100644 --- a/src/components/markdown/Renderer.tsx +++ b/src/components/markdown/Renderer.tsx @@ -48,10 +48,10 @@ export const md: MarkdownIt = MarkdownIt({ const v = Prism.languages[lang]; if (v) { const out = Prism.highlight(str, v, lang); - return `
${lang}
${out}
`; + return `
${lang}
${out}
`; } - return `
${md.utils.escapeHtml(
+        return `
${md.utils.escapeHtml(
             str,
         )}
`; },