From f9a40ea2b906b35098938659d514d2d965c9c61a Mon Sep 17 00:00:00 2001 From: Maas Lalani Date: Sat, 13 Jan 2024 23:08:53 -0500 Subject: [PATCH] fix(format): force ansi256 for template formatting --- format/formats.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/format/formats.go b/format/formats.go index d123135..9e63e66 100644 --- a/format/formats.go +++ b/format/formats.go @@ -54,7 +54,7 @@ func markdown(input string, theme string) (string, error) { } func template(input string) (string, error) { - f := termenv.TemplateFuncs(termenv.ColorProfile()) + f := termenv.TemplateFuncs(termenv.ANSI256) t, err := tpl.New("tpl").Funcs(f).Parse(input) if err != nil { return "", fmt.Errorf("unable to parse template: %w", err)