mirror of
https://github.com/aljazceru/goose.git
synced 2025-12-18 14:44:21 +01:00
chore: Consolidate on one markdown rendering component (#842)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import React, { useState, useEffect, useRef } from 'react';
|
||||
import ReactMarkdown from 'react-markdown';
|
||||
import MarkdownContent from './MarkdownContent';
|
||||
import { Button } from './ui/button';
|
||||
import { cn } from '../utils';
|
||||
import { Send } from './icons';
|
||||
@@ -177,7 +177,7 @@ export default function GooseResponseForm({
|
||||
>
|
||||
<h3 className="font-semibold text-lg mb-2 dark:text-gray-100">{opt.optionTitle}</h3>
|
||||
<div className="prose prose-xs max-w-none dark:text-gray-100">
|
||||
<ReactMarkdown>{opt.optionDescription}</ReactMarkdown>
|
||||
<MarkdownContent content={opt.optionDescription} />
|
||||
</div>
|
||||
</div>
|
||||
))}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React, { useState } from 'react';
|
||||
import ReactMarkdown from 'react-markdown';
|
||||
import MarkdownContent from './MarkdownContent';
|
||||
|
||||
interface ToolCallArgumentsProps {
|
||||
args: Record<string, any>;
|
||||
@@ -44,9 +44,7 @@ export function ToolCallArguments({ args }: ToolCallArgumentsProps) {
|
||||
</div>
|
||||
{isExpanded && (
|
||||
<div className="mt-2 ml-4">
|
||||
<ReactMarkdown className="whitespace-pre-wrap break-words prose-pre:whitespace-pre-wrap prose-pre:break-words text-gray-600 dark:text-white">
|
||||
{value}
|
||||
</ReactMarkdown>
|
||||
<MarkdownContent content={value} />
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user