fix: custom markdown CSS styles for AI chat responses (tables, code, lists, headings)
This commit is contained in:
@@ -25,7 +25,7 @@ function MessageContent({ content, role }: { content: string; role: string }) {
|
||||
return <div className="whitespace-pre-wrap break-words">{content}</div>;
|
||||
}
|
||||
return (
|
||||
<div className="prose prose-sm max-w-none break-words [&_p]:my-1 [&_ul]:my-1 [&_ol]:my-1 [&_table]:text-xs [&_th]:px-2 [&_th]:py-1 [&_td]:px-2 [&_td]:py-1 [&_pre]:text-xs [&_code]:text-xs">
|
||||
<div className="ai-markdown max-w-none break-words">
|
||||
<ReactMarkdown remarkPlugins={[remarkGfm]}>{content}</ReactMarkdown>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user