From 3e9d8b2c8de0db102e27378d69a086451c9de680 Mon Sep 17 00:00:00 2001 From: "Dhanji R. Prasanna" Date: Tue, 20 Jan 2026 22:19:41 +0530 Subject: [PATCH] Distinguish heading levels with Dracula color scheme MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Headings now have distinct visual hierarchy: - # H1 → Bold pink (most prominent) - ## H2 → Purple/magenta - ### H3 → Cyan - #### H4 → White - ##### H5 → Dim - ###### H6 → Dim Previously H2-H6 were all identical magenta. --- crates/g3-cli/src/streaming_markdown.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/crates/g3-cli/src/streaming_markdown.rs b/crates/g3-cli/src/streaming_markdown.rs index cd7e3a0..6a8c10b 100644 --- a/crates/g3-cli/src/streaming_markdown.rs +++ b/crates/g3-cli/src/streaming_markdown.rs @@ -565,9 +565,12 @@ impl StreamingMarkdownFormatter { // Format based on level (magenta, bold for h1/h2) // We wrap the already-formatted content in header color, then reset at the end match level { - 1 => format!("\x1b[1;35m{}\x1b[0m\n", formatted_content), // Bold magenta - 2 => format!("\x1b[35m{}\x1b[0m\n", formatted_content), // Magenta - _ => format!("\x1b[35m{}\x1b[0m\n", formatted_content), // Magenta for h3+ + 1 => format!("\x1b[1;95m{}\x1b[0m\n", formatted_content), // Bold pink (Dracula) + 2 => format!("\x1b[35m{}\x1b[0m\n", formatted_content), // Purple/magenta (Dracula) + 3 => format!("\x1b[36m{}\x1b[0m\n", formatted_content), // Cyan (Dracula) + 4 => format!("\x1b[37m{}\x1b[0m\n", formatted_content), // White (Dracula) + 5 => format!("\x1b[2m{}\x1b[0m\n", formatted_content), // Dim (Dracula) + _ => format!("\x1b[2m{}\x1b[0m\n", formatted_content), // Dim for h6+ (Dracula) } }