fix: enable inline math formula rendering with single dollar signs
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -15,7 +15,7 @@ import { cn } from "@/lib/utils"
|
||||
import { useTranslations } from "next-intl"
|
||||
import { cjk } from "@streamdown/cjk"
|
||||
import { code } from "@streamdown/code"
|
||||
import { math } from "@streamdown/math"
|
||||
import { createMathPlugin } from "@streamdown/math"
|
||||
import { mermaid } from "@streamdown/mermaid"
|
||||
import { ChevronLeftIcon, ChevronRightIcon } from "lucide-react"
|
||||
import {
|
||||
@@ -326,6 +326,7 @@ export const MessageBranchPage = ({
|
||||
|
||||
export type MessageResponseProps = ComponentProps<typeof Streamdown>
|
||||
|
||||
const math = createMathPlugin({ singleDollarTextMath: true })
|
||||
const streamdownPlugins = { cjk, code, math, mermaid }
|
||||
|
||||
function MessageResponseImpl({ className, ...props }: MessageResponseProps) {
|
||||
|
||||
Reference in New Issue
Block a user