Skip to content

An AI-powered search engine with a generative UI

chore: Update rehype-katex and remark-gfm

Yoshiki Miurafa88967beb23
diff --git a/bun.lockb b/bun.lockb
index c0d8b90b..66e7a7ad 100755
Binary files a/bun.lockb and b/bun.lockb differ
diff --git a/components/message.tsx b/components/message.tsx
index a2d006f7..cee4d892 100644
--- a/components/message.tsx
+++ b/components/message.tsx
@@ -22,7 +22,7 @@ export function BotMessage({ content }: { content: string }) {
<MemoizedReactMarkdown
rehypePlugins={[
[rehypeExternalLinks, { target: '_blank' }],
- [rehypeKatex as any, { throwOnError: false, strict: false }]
+ [rehypeKatex]
]}
remarkPlugins={[remarkGfm, remarkMath]}
className="prose-sm prose-neutral prose-a:text-accent-foreground/50"
diff --git a/components/ui/codeblock.tsx b/components/ui/codeblock.tsx
index 3d564509..476f3197 100644
--- a/components/ui/codeblock.tsx
+++ b/components/ui/codeblock.tsx
@@ -83,7 +83,7 @@ const CodeBlock: FC<Props> = memo(({ language, value }) => {
return (
<div className="relative w-full font-sans codeblock bg-neutral-800">
- <div className="flex items-center justify-between w-full px-6 py-2 pr-4 bg-neutral-700 text-zinc-100">
+ <div className="flex items-center justify-between w-full px-6 py-1 pr-4 bg-neutral-700 text-zinc-100">
<span className="text-xs lowercase">{language}</span>
<div className="flex items-center space-x-1">
<Button
diff --git a/package.json b/package.json
index bf4c2da8..92715eaf 100644
--- a/package.json
+++ b/package.json
@@ -43,9 +43,9 @@
"react-syntax-highlighter": "^15.5.0",
"react-textarea-autosize": "^8.5.3",
"rehype-external-links": "^3.0.0",
- "rehype-katex": "^7.0.0",
- "remark-gfm": "^4.0.0",
- "remark-math": "^6.0.0",
+ "rehype-katex": "^6.0.0",
+ "remark-gfm": "^3.0.1",
+ "remark-math": "^5.1.1",
"sonner": "^1.4.41",
"tailwind-merge": "^2.2.2",
"tailwindcss-animate": "^1.0.7",