Ensure markdown still passed through Glamour in no-color mode

This commit is contained in:
Mislav Marohnić 2020-06-22 19:44:16 +02:00
parent 04b18ea8cb
commit ac7d5ecc44

View file

@ -23,10 +23,6 @@ func OpenInBrowser(url string) error {
func RenderMarkdown(text string) (string, error) {
style := "notty"
if !isColorEnabled() {
return text, nil
}
if isColorEnabled() {
style = "dark"
}