fix(format): force ansi256 for template formatting

This commit is contained in:
Maas Lalani 2024-01-13 23:08:53 -05:00
parent 2d896f777e
commit 7caf7d44ff

View file

@ -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)