Skip to content

Connect, collaborate, and grow with a community of TypeScript developers

wrap code in description (#552)

jprobersond8c50e5826e9
diff --git a/packages/ui/src/components/markdown.tsx b/packages/ui/src/components/markdown.tsx
index 8343c35c..9d7ad6f7 100644
--- a/packages/ui/src/components/markdown.tsx
+++ b/packages/ui/src/components/markdown.tsx
@@ -71,6 +71,8 @@ export function Markdown({ children, className }: { children: string; className?
className={clsx(className, 'rounded-xl dark:rounded-md')}
language={match[1]}
style={syntaxHighlighterTheme} // theme
+ wrapLines
+ wrapLongLines
{...props}
>
{String(children).replace(/\n$/, '')}