Skip to content

Commit 859304a

Browse files
committed
fix: use div instead of p tag in Markdown to prevent hydration errors (CopilotKit#2234)
1 parent 789ab17 commit 859304a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/react-ui/src/components/chat/Markdown.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,9 @@ const defaultComponents: Components = {
9797
</h6>
9898
),
9999
p: ({ children, ...props }) => (
100-
<p className="copilotKitMarkdownElement" {...props}>
100+
<div className="copilotKitMarkdownElement copilotKitParagraph" {...props}>
101101
{children}
102-
</p>
102+
</div>
103103
),
104104
pre: ({ children, ...props }) => (
105105
<pre className="copilotKitMarkdownElement" {...props}>

0 commit comments

Comments
 (0)