diff --git a/frontend/src/conversation/ConversationBubble.tsx b/frontend/src/conversation/ConversationBubble.tsx index 6ad877c3..a21e352d 100644 --- a/frontend/src/conversation/ConversationBubble.tsx +++ b/frontend/src/conversation/ConversationBubble.tsx @@ -226,19 +226,19 @@ const ConversationBubble = forwardRef< className="whitespace-pre-wrap break-normal leading-normal" remarkPlugins={[remarkGfm]} components={{ - code({ node, inline, className, children, ...props }) { + code(props) { + const { children, className, node, ref, ...rest } = props; const match = /language-(\w+)/.exec(className || ''); - return !inline && match ? ( + return match ? (
- {String(children).replace(/\n$/, '')} - + />