Ensure markdown still passed through Glamour in no-color mode
This commit is contained in:
parent
04b18ea8cb
commit
ac7d5ecc44
1 changed files with 0 additions and 4 deletions
|
|
@ -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"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue