mirror of
https://github.com/rwinkhart/MUTN.git
synced 2026-08-28 04:46:41 -04:00
(Markdown) Make headers more aesthetically pleasing
This commit is contained in:
+4
-11
@@ -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
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user