Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export const renderMarkdown = (
<ReactMarkdown
className={`prose dark:prose-invert max-w-full ${textSize}`}
components={markdownComponents}
remarkPlugins={[remarkGfm, remarkMath]}
remarkPlugins={[remarkGfm, [remarkMath, { singleDollarTextMath: false }]]}
rehypePlugins={[[rehypePrism, { ignoreMissing: true }], rehypeKatex]}
urlTransform={transformLinkUri}
>
Expand Down
5 changes: 4 additions & 1 deletion web/src/app/chat/message/thinkingBox/ThinkingBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,10 @@ export const ThinkingBox: React.FC<ThinkingBoxProps> = ({
>
<ReactMarkdown
className="prose dark:prose-invert max-w-full"
remarkPlugins={[remarkGfm, remarkMath]}
remarkPlugins={[
remarkGfm,
[remarkMath, { singleDollarTextMath: false }],
]}
rehypePlugins={[
[rehypePrism, { ignoreMissing: true }],
rehypeKatex,
Expand Down
5 changes: 4 additions & 1 deletion web/src/components/chat/MinimalMarkdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ export default function MinimalMarkdown({
className="prose dark:prose-invert max-w-full text-sm break-words"
components={markdownComponents}
rehypePlugins={[[rehypePrism, { ignoreMissing: true }], rehypeKatex]}
remarkPlugins={[remarkGfm, remarkMath]}
remarkPlugins={[
remarkGfm,
[remarkMath, { singleDollarTextMath: false }],
]}
urlTransform={transformLinkUri}
>
{content}
Expand Down
Loading