mirror of
https://github.com/charmbracelet/gum
synced 2024-05-21 07:36:44 +02:00
fix(format): force ansi256 for template formatting
This commit is contained in:
parent
2d896f777e
commit
7caf7d44ff
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue