diff --git a/apps/desktop/src/session/components/streamdown.tsx b/apps/desktop/src/session/components/streamdown.tsx index 2cf862f31c..9cebfe45df 100644 --- a/apps/desktop/src/session/components/streamdown.tsx +++ b/apps/desktop/src/session/components/streamdown.tsx @@ -6,17 +6,17 @@ const HEADING_WITH_MARGIN = "mt-4 first:mt-0"; export const streamdownComponents = { h1: (props: React.HTMLAttributes) => ( -

+

{props.children as React.ReactNode} -

+ ), h2: (props: React.HTMLAttributes) => ( -

+

{props.children as React.ReactNode}

), h3: (props: React.HTMLAttributes) => ( -

+

{props.children as React.ReactNode}

), diff --git a/packages/tiptap/src/shared/streamdown-components.tsx b/packages/tiptap/src/shared/streamdown-components.tsx index 472ed5f2a4..9aed15517d 100644 --- a/packages/tiptap/src/shared/streamdown-components.tsx +++ b/packages/tiptap/src/shared/streamdown-components.tsx @@ -7,17 +7,17 @@ const HEADING_WITH_MARGIN = "mt-4 first:mt-0"; export const streamdownComponents = { h1: (props: React.HTMLAttributes) => ( -

+

{props.children as React.ReactNode} -

+ ), h2: (props: React.HTMLAttributes) => ( -

+

{props.children as React.ReactNode}

), h3: (props: React.HTMLAttributes) => ( -

+

{props.children as React.ReactNode}

),