Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

fix(trace): show linebreaks in only text markdown view (#8106)

Nimaredb43a24abd4
diff --git a/web/src/components/ui/MarkdownViewer.tsx b/web/src/components/ui/MarkdownViewer.tsx
index b2352821c5..f487e628f9 100644
--- a/web/src/components/ui/MarkdownViewer.tsx
+++ b/web/src/components/ui/MarkdownViewer.tsx
@@ -123,7 +123,7 @@ function MarkdownRenderer({
return (
<MemoizedReactMarkdown
className={cn(
- "space-y-2 overflow-x-auto break-words text-sm",
+ "space-y-2 overflow-x-auto whitespace-pre-wrap break-words text-sm",
className,
)}
remarkPlugins={[remarkGfm]}