7e944a21a690306ad942ae825a09092090d687b8
- Author
- Ayman Bagabas <ayman.bagabas@gmail.com>
- Committer
- Ayman Bagabas <ayman.bagabas@gmail.com>
- Date
Message
fix(ui): remove red background for empty spaces in code blocks
Diff
1diff --git a/pkg/ui/common/style.go b/pkg/ui/common/style.go
2index 227efa242598b1b120b3d5c638837335881872eb..412ec2ee6d8e53b4bfeb3aaff9cf079268f4b725 100644
3--- a/pkg/ui/common/style.go
4+++ b/pkg/ui/common/style.go
5@@ -15,7 +15,7 @@ func strptr(s string) *string {
6
7 // StyleConfig returns the default Glamour style configuration.
8 func StyleConfig() gansi.StyleConfig {
9- // noColor := strptr("")
10+ noColor := strptr("")
11 s := styles.DarkStyleConfig
12 // s.H1.BackgroundColor = noColor
13 // s.H1.Prefix = "# "
14@@ -24,9 +24,9 @@ func StyleConfig() gansi.StyleConfig {
15 // s.Document.StylePrimitive.Color = noColor
16 // s.CodeBlock.Chroma.Text.Color = noColor
17 // s.CodeBlock.Chroma.Name.Color = noColor
18- // // This fixes an issue with the default style config. For example
19- // // highlighting empty spaces with red in Dockerfile type.
20- // s.CodeBlock.Chroma.Error.BackgroundColor = noColor
21+ // This fixes an issue with the default style config. For example
22+ // highlighting empty spaces with red in Dockerfile type.
23+ s.CodeBlock.Chroma.Error.BackgroundColor = noColor
24 return s
25 }
26