Spaces:
Runtime error
Runtime error
Commit
·
b016e58
1
Parent(s):
c269b6a
Update components/Chat/ChatMessage.tsx
Browse files
components/Chat/ChatMessage.tsx
CHANGED
@@ -223,9 +223,6 @@ export const ChatMessage: FC<Props> = memo(({ message, messageIndex, onEdit }) =
|
|
223 |
}
|
224 |
const match = /language-(\w+)/.exec(className || '');
|
225 |
return !inline ? (
|
226 |
-
match && match[1] === 'html' ? (
|
227 |
-
<div className={className} dangerouslySetInnerHTML={{ __html: String(children).replace(/\n$/, '') }} />
|
228 |
-
) : (
|
229 |
<CodeBlock
|
230 |
key={Math.random()}
|
231 |
language={(match && match[1]) || ''}
|
|
|
223 |
}
|
224 |
const match = /language-(\w+)/.exec(className || '');
|
225 |
return !inline ? (
|
|
|
|
|
|
|
226 |
<CodeBlock
|
227 |
key={Math.random()}
|
228 |
language={(match && match[1]) || ''}
|