(Markdown) Use full terminal width for horizontal rulers

This commit is contained in:
2024-04-10 20:16:39 -04:00
parent 09eec99fe1
commit 6b0ad509f5
+4 -1
View File
@@ -1,6 +1,9 @@
package cli package cli
import "strings"
func glamourStyle(styleName string) []byte { func glamourStyle(styleName string) []byte {
hrString := strings.Repeat("─", width)
if styleName == "custom" { if styleName == "custom" {
return []byte(`{}`) // TODO add support for custom color schemes return []byte(`{}`) // TODO add support for custom color schemes
} else if styleName == "gruvbox" { } else if styleName == "gruvbox" {
@@ -61,7 +64,7 @@ func glamourStyle(styleName string) []byte {
}, },
"hr": { "hr": {
"color": "246", "color": "246",
"format": "\n--------\n" "format": "\n` + hrString + `\n"
}, },
"item": { "item": {
"block_prefix": "• " "block_prefix": "• "