Skip to content

Commit f9a40ea

Browse files
committed
fix(format): force ansi256 for template formatting
1 parent 2d896f7 commit f9a40ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

format/formats.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func markdown(input string, theme string) (string, error) {
5454
}
5555

5656
func template(input string) (string, error) {
57-
f := termenv.TemplateFuncs(termenv.ColorProfile())
57+
f := termenv.TemplateFuncs(termenv.ANSI256)
5858
t, err := tpl.New("tpl").Funcs(f).Parse(input)
5959
if err != nil {
6060
return "", fmt.Errorf("unable to parse template: %w", err)

0 commit comments

Comments
 (0)