There was an error while loading. Please reload this page.
2 parents beb8e01 + 182f30a commit af303b7Copy full SHA for af303b7
1 file changed
react/src/components/chat/Markdown.tsx
@@ -92,12 +92,14 @@ const NonMemoizedMarkdown: React.FC<MarkdownProps> = ({ children }) => {
92
return !(props as any).inline && match ? (
93
<pre
94
{...props}
95
- className={`${className} text-sm w-full max-w-full overflow-x-auto p-3 rounded-lg mt-2 bg-zinc-800 text-white dark:bg-zinc-300 dark:text-black whitespace-pre break-all`}
+ className={`${className} text-sm w-full max-w-full overflow-x-auto p-3 rounded-lg mt-2 bg-zinc-800 text-white dark:bg-zinc-300 dark:text-black whitespace-pre-wrap break-all`}
96
>
97
<code
98
className={match[1]}
99
style={{
100
wordBreak: 'break-all',
101
+ whiteSpace: 'pre-wrap',
102
+ wordWrap: 'break-word'
103
}}
104
105
{children}
0 commit comments