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 f9a40ea2b9
No known key found for this signature in database
GPG key ID: 5A6ED5CBF1A0A000

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)