mirror of
https://github.com/rwinkhart/MUTN.git
synced 2026-08-28 04:46:41 -04:00
(Markdown) Use full terminal width for horizontal rulers
This commit is contained in:
@@ -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": "• "
|
||||||
|
|||||||
Reference in New Issue
Block a user