An AI-powered search engine with a generative UI
TypeScript generative-aigenerative-uinextjsollamareactsearxngshadcn-uitailwindcsstavilytypescriptupstashvercel-ai-sdk
chore: Update rehype-katex and remark-gfm
Yoshiki Miurafa88967beb23
diff --git a/bun.lockb b/bun.lockbindex c0d8b90b..66e7a7ad 100755Binary files a/bun.lockb and b/bun.lockb differdiff --git a/components/message.tsx b/components/message.tsxindex a2d006f7..cee4d892 100644--- a/components/message.tsx+++ b/components/message.tsx@@ -22,7 +22,7 @@ export function BotMessage({ content }: { content: string }) {<MemoizedReactMarkdownrehypePlugins={[[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.tsxindex 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"><Buttondiff --git a/package.json b/package.jsonindex 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",