We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48e7df2 commit 0cc41b4Copy full SHA for 0cc41b4
utils/utils.go
@@ -22,7 +22,11 @@ func OpenInBrowser(url string) error {
22
}
23
24
func RenderMarkdown(text string) (string, error) {
25
- return glamour.Render(text, "dark")
+ style := "notty"
26
+ if isColorEnabled() {
27
+ style = "dark"
28
+ }
29
+ return glamour.Render(text, style)
30
31
32
func Pluralize(num int, thing string) string {
0 commit comments