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:
@@ -18,13 +18,14 @@ import {
|
||||
} from "@/components/ui/context-menu"
|
||||
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 { Streamdown } from "streamdown"
|
||||
import { readFileBase64 } from "@/lib/api"
|
||||
import { defineMonacoThemes, useMonacoThemeSync } from "@/lib/monaco-themes"
|
||||
import "@/lib/monaco-local"
|
||||
|
||||
const math = createMathPlugin({ singleDollarTextMath: true })
|
||||
const previewPlugins = { cjk, code, math, mermaid }
|
||||
|
||||
function resolveRelativePath(base: string, relative: string): string {
|
||||
|
||||
Reference in New Issue
Block a user