(Markdown) Make headers more aesthetically pleasing

This commit is contained in:
2024-04-11 14:49:13 -04:00
parent d85abd6b37
commit 58facd2ad0
+4 -11
View File
@@ -4,10 +4,7 @@ import "strings"
func glamourStyle(styleName string) []byte { func glamourStyle(styleName string) []byte {
quarterHRString := strings.Repeat("─", width/4) quarterHRString := strings.Repeat("─", width/4)
if styleName == "custom" { return []byte(`{
return []byte(`{}`) // TODO add support for custom color schemes
} else if styleName == "gruvbox" {
return []byte(`{
"document": { "document": {
"block_prefix": "\n", "block_prefix": "\n",
"block_suffix": "\n", "block_suffix": "\n",
@@ -31,14 +28,13 @@ func glamourStyle(styleName string) []byte {
"h1": { "h1": {
"prefix": "──────", "prefix": "──────",
"suffix": "──────", "suffix": "──────",
"color": "#689d6a", "color": "#fbf1c7",
"background_color": "#fbf1c7" "background_color": "#b16286"
}, },
"h2": { "h2": {
"prefix": "+++++", "prefix": "+++++",
"suffix": "+++++", "suffix": "+++++",
"color": "#b16286", "color": "#689d6a"
"background_color": "#fbf1c7"
}, },
"h3": { "h3": {
"prefix": "────", "prefix": "────",
@@ -212,7 +208,4 @@ func glamourStyle(styleName string) []byte {
"html_block": {}, "html_block": {},
"html_span": {} "html_span": {}
}`) }`)
} else {
return []byte(`{}`) // TODO add Go color scheme
}
} }