From bb18993845bbcacbb2d83872583ca104353b212d Mon Sep 17 00:00:00 2001 From: Saoud Rizwan <7799382+saoudrizwan@users.noreply.github.com> Date: Wed, 2 Oct 2024 04:25:48 -0400 Subject: [PATCH] Fix line breaks not rendering --- webview-ui/src/components/common/MarkdownBlock.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/webview-ui/src/components/common/MarkdownBlock.tsx b/webview-ui/src/components/common/MarkdownBlock.tsx index 3b66942274..55565d128f 100644 --- a/webview-ui/src/components/common/MarkdownBlock.tsx +++ b/webview-ui/src/components/common/MarkdownBlock.tsx @@ -73,6 +73,10 @@ const StyledMarkdown = styled.div` padding-left: 2.5em; margin-left: 0; } + + p { + white-space: pre-wrap; + } ` const StyledPre = styled.pre<{ theme: any }>`