Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
pablonyx committed Dec 18, 2024
1 parent bbca37a commit e7c05bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 71 deletions.
12 changes: 3 additions & 9 deletions web/src/app/chat/message/Messages.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ import SourceCard, {

import remarkMath from "remark-math";
import rehypeKatex from "rehype-katex";
import "katex/dist/katex.min.css"; // Add this import for KaTeX styles
import "katex/dist/katex.min.css";

const TOOLS_WITH_CUSTOM_HANDLING = [
SEARCH_TOOL_NAME,
Expand Down Expand Up @@ -365,14 +365,8 @@ export const AIMessage = ({
<ReactMarkdown
className="prose max-w-full text-base"
components={markdownComponents}
remarkPlugins={[
remarkGfm, // For tables, strikethrough, etc.
remarkMath, // For parsing \(...\) and \[...\] math syntax
]}
rehypePlugins={[
[rehypePrism, { ignoreMissing: true }], // Syntax highlighting
rehypeKatex, // Renders LaTeX as HTML
]}
remarkPlugins={[remarkGfm, remarkMath]}
rehypePlugins={[[rehypePrism, { ignoreMissing: true }], rehypeKatex]}
>
{finalContent as string}
</ReactMarkdown>
Expand Down
62 changes: 0 additions & 62 deletions web/src/app/test/page.tsx

This file was deleted.

0 comments on commit e7c05bf

Please sign in to comment.