Merge branch 'main-fix'
This commit is contained in:
@@ -15,7 +15,7 @@ import { cn } from "@/lib/utils"
|
|||||||
import { useTranslations } from "next-intl"
|
import { useTranslations } from "next-intl"
|
||||||
import { cjk } from "@streamdown/cjk"
|
import { cjk } from "@streamdown/cjk"
|
||||||
import { code } from "@streamdown/code"
|
import { code } from "@streamdown/code"
|
||||||
import { math } from "@streamdown/math"
|
import { createMathPlugin } from "@streamdown/math"
|
||||||
import { mermaid } from "@streamdown/mermaid"
|
import { mermaid } from "@streamdown/mermaid"
|
||||||
import { ChevronLeftIcon, ChevronRightIcon } from "lucide-react"
|
import { ChevronLeftIcon, ChevronRightIcon } from "lucide-react"
|
||||||
import {
|
import {
|
||||||
@@ -326,6 +326,7 @@ export const MessageBranchPage = ({
|
|||||||
|
|
||||||
export type MessageResponseProps = ComponentProps<typeof Streamdown>
|
export type MessageResponseProps = ComponentProps<typeof Streamdown>
|
||||||
|
|
||||||
|
const math = createMathPlugin({ singleDollarTextMath: true })
|
||||||
const streamdownPlugins = { cjk, code, math, mermaid }
|
const streamdownPlugins = { cjk, code, math, mermaid }
|
||||||
|
|
||||||
function MessageResponseImpl({ className, ...props }: MessageResponseProps) {
|
function MessageResponseImpl({ className, ...props }: MessageResponseProps) {
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ import {
|
|||||||
import { cn } from "@/lib/utils"
|
import { cn } from "@/lib/utils"
|
||||||
import { cjk } from "@streamdown/cjk"
|
import { cjk } from "@streamdown/cjk"
|
||||||
import { code } from "@streamdown/code"
|
import { code } from "@streamdown/code"
|
||||||
import { math } from "@streamdown/math"
|
import { createMathPlugin } from "@streamdown/math"
|
||||||
import { mermaid } from "@streamdown/mermaid"
|
import { mermaid } from "@streamdown/mermaid"
|
||||||
import { BrainIcon, ChevronDownIcon } from "lucide-react"
|
import { BrainIcon, ChevronDownIcon } from "lucide-react"
|
||||||
import {
|
import {
|
||||||
@@ -212,6 +212,7 @@ export type ReasoningContentProps = ComponentProps<
|
|||||||
children: string
|
children: string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const math = createMathPlugin({ singleDollarTextMath: true })
|
||||||
const streamdownPlugins = { cjk, code, math, mermaid }
|
const streamdownPlugins = { cjk, code, math, mermaid }
|
||||||
|
|
||||||
export const ReasoningContent = memo(
|
export const ReasoningContent = memo(
|
||||||
|
|||||||
@@ -18,13 +18,14 @@ import {
|
|||||||
} from "@/components/ui/context-menu"
|
} from "@/components/ui/context-menu"
|
||||||
import { cjk } from "@streamdown/cjk"
|
import { cjk } from "@streamdown/cjk"
|
||||||
import { code } from "@streamdown/code"
|
import { code } from "@streamdown/code"
|
||||||
import { math } from "@streamdown/math"
|
import { createMathPlugin } from "@streamdown/math"
|
||||||
import { mermaid } from "@streamdown/mermaid"
|
import { mermaid } from "@streamdown/mermaid"
|
||||||
import { Streamdown } from "streamdown"
|
import { Streamdown } from "streamdown"
|
||||||
import { readFileBase64 } from "@/lib/api"
|
import { readFileBase64 } from "@/lib/api"
|
||||||
import { defineMonacoThemes, useMonacoThemeSync } from "@/lib/monaco-themes"
|
import { defineMonacoThemes, useMonacoThemeSync } from "@/lib/monaco-themes"
|
||||||
import "@/lib/monaco-local"
|
import "@/lib/monaco-local"
|
||||||
|
|
||||||
|
const math = createMathPlugin({ singleDollarTextMath: true })
|
||||||
const previewPlugins = { cjk, code, math, mermaid }
|
const previewPlugins = { cjk, code, math, mermaid }
|
||||||
|
|
||||||
function resolveRelativePath(base: string, relative: string): string {
|
function resolveRelativePath(base: string, relative: string): string {
|
||||||
|
|||||||
Reference in New Issue
Block a user