From 13b4100311a2340ef57dd89c519b269dbe21ac09 Mon Sep 17 00:00:00 2001 From: Devansh Jain <31609257+devanshrj@users.noreply.github.com> Date: Sun, 14 Dec 2025 11:33:53 -0800 Subject: [PATCH] fix: Markdown render spacing (#207) --- src/cli/components/MarkdownDisplay.tsx | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/cli/components/MarkdownDisplay.tsx b/src/cli/components/MarkdownDisplay.tsx index 64a6734..7255dd0 100644 --- a/src/cli/components/MarkdownDisplay.tsx +++ b/src/cli/components/MarkdownDisplay.tsx @@ -58,7 +58,7 @@ export const MarkdownDisplay: React.FC = ({ // TODO: Could parse cli-highlight output and convert ANSI to Ink components // but for MVP, just use a nice color like Gemini does contentBlocks.push( - + {code} , ); @@ -109,11 +109,7 @@ export const MarkdownDisplay: React.FC = ({ ); } - contentBlocks.push( - - {headerElement} - , - ); + contentBlocks.push({headerElement}); return; } @@ -166,7 +162,7 @@ export const MarkdownDisplay: React.FC = ({ // Check for horizontal rules if (line.match(hrRegex)) { contentBlocks.push( - + ─────────────────────────────── , ); @@ -205,7 +201,7 @@ export const MarkdownDisplay: React.FC = ({ if (inCodeBlock && codeBlockContent.length > 0) { const code = codeBlockContent.join("\n"); contentBlocks.push( - + {code} , );