Connect, collaborate, and grow with a community of TypeScript developers
enabling this again for hints
bautistaaae96c8401d20a
diff --git a/packages/ui/src/components/markdown.tsx b/packages/ui/src/components/markdown.tsxindex ea00f8f5..30bad22a 100644--- a/packages/ui/src/components/markdown.tsx+++ b/packages/ui/src/components/markdown.tsx@@ -6,6 +6,7 @@ import { useTheme } from 'next-themes';import { useState } from 'react';import ReactMarkdown from 'react-markdown';import { Prism as SyntaxHighlighter } from 'react-syntax-highlighter';+import rehypeRaw from 'rehype-raw';import remarkGfm from 'remark-gfm';import type { Transformer } from 'unified';import { SKIP, visit, type BuildVisitor } from 'unist-util-visit';@@ -119,7 +120,7 @@ export function Markdown({}}// FIXME: this is vuln to XSS and I don't know why we use it, let's remove it// or add in a sanitizer lib like: https://github.com/rehypejs/rehype-sanitize- // rehypePlugins={[rehypeRaw as any]}+ rehypePlugins={[rehypeRaw as any]}remarkPlugins={[removeHtmlComments, remarkGfm, ...(disableMentions ? [] : [userMentions])]}>{children}