From d07a4cc39822b96da71446eb8f8e2709824b9feb Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Thu, 11 Apr 2024 14:49:13 -0400 Subject: [PATCH] (Markdown) Make headers more aesthetically pleasing --- src/cli/glamourStyle.go | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/src/cli/glamourStyle.go b/src/cli/glamourStyle.go index c67fbc3..2d5906a 100644 --- a/src/cli/glamourStyle.go +++ b/src/cli/glamourStyle.go @@ -4,10 +4,7 @@ import "strings" func glamourStyle(styleName string) []byte { quarterHRString := strings.Repeat("─", width/4) - if styleName == "custom" { - return []byte(`{}`) // TODO add support for custom color schemes - } else if styleName == "gruvbox" { - return []byte(`{ + return []byte(`{ "document": { "block_prefix": "\n", "block_suffix": "\n", @@ -31,14 +28,13 @@ func glamourStyle(styleName string) []byte { "h1": { "prefix": "──────", "suffix": "──────", - "color": "#689d6a", - "background_color": "#fbf1c7" + "color": "#fbf1c7", + "background_color": "#b16286" }, "h2": { "prefix": "+++++", "suffix": "+++++", - "color": "#b16286", - "background_color": "#fbf1c7" + "color": "#689d6a" }, "h3": { "prefix": "────", @@ -212,7 +208,4 @@ func glamourStyle(styleName string) []byte { "html_block": {}, "html_span": {} }`) - } else { - return []byte(`{}`) // TODO add Go color scheme - } }