From 67420b0713c5c1ca13dc4d5d8ef299d432268bc7 Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Wed, 10 Apr 2024 22:30:42 -0400 Subject: [PATCH] (Markdown) Add new, more consistent header design --- src/cli/glamourStyle.go | 35 +++++++++++++++++++++-------------- 1 file changed, 21 insertions(+), 14 deletions(-) diff --git a/src/cli/glamourStyle.go b/src/cli/glamourStyle.go index c882b95..c67fbc3 100644 --- a/src/cli/glamourStyle.go +++ b/src/cli/glamourStyle.go @@ -26,31 +26,39 @@ func glamourStyle(styleName string) []byte { }, "heading": { "block_suffix": "\n", - "color": "#b16286", "bold": true }, "h1": { - "prefix": " ", - "suffix": " ", - "color": "#b16286", - "background_color": "229", - "bold": true + "prefix": "──────", + "suffix": "──────", + "color": "#689d6a", + "background_color": "#fbf1c7" }, "h2": { - "prefix": "## " + "prefix": "+++++", + "suffix": "+++++", + "color": "#b16286", + "background_color": "#fbf1c7" }, "h3": { - "prefix": "### " + "prefix": "────", + "suffix": "────", + "color": "#458588" }, "h4": { - "prefix": "#### " + "prefix": "+++", + "suffix": "+++", + "color": "#d79921" }, "h5": { - "prefix": "##### " + "prefix": "──", + "suffix": "──", + "color": "#98971a" }, "h6": { - "prefix": "###### ", - "bold": false + "prefix": "+", + "suffix": "+", + "color": "#cc241d" }, "text": {}, "strikethrough": { @@ -203,8 +211,7 @@ func glamourStyle(styleName string) []byte { }, "html_block": {}, "html_span": {} -} -`) +}`) } else { return []byte(`{}`) // TODO add Go color scheme }