From 7e944a21a690306ad942ae825a09092090d687b8 Mon Sep 17 00:00:00 2001 From: Ayman Bagabas Date: Thu, 3 Jul 2025 11:49:41 -0400 Subject: [PATCH] fix(ui): remove red background for empty spaces in code blocks --- pkg/ui/common/style.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/ui/common/style.go b/pkg/ui/common/style.go index 227efa242598b1b120b3d5c638837335881872eb..412ec2ee6d8e53b4bfeb3aaff9cf079268f4b725 100644 --- a/pkg/ui/common/style.go +++ b/pkg/ui/common/style.go @@ -15,7 +15,7 @@ func strptr(s string) *string { // StyleConfig returns the default Glamour style configuration. func StyleConfig() gansi.StyleConfig { - // noColor := strptr("") + noColor := strptr("") s := styles.DarkStyleConfig // s.H1.BackgroundColor = noColor // s.H1.Prefix = "# " @@ -24,9 +24,9 @@ func StyleConfig() gansi.StyleConfig { // s.Document.StylePrimitive.Color = noColor // s.CodeBlock.Chroma.Text.Color = noColor // s.CodeBlock.Chroma.Name.Color = noColor - // // This fixes an issue with the default style config. For example - // // highlighting empty spaces with red in Dockerfile type. - // s.CodeBlock.Chroma.Error.BackgroundColor = noColor + // This fixes an issue with the default style config. For example + // highlighting empty spaces with red in Dockerfile type. + s.CodeBlock.Chroma.Error.BackgroundColor = noColor return s }