mirror of
https://github.com/charmbracelet/gum
synced 2024-06-15 20:15:08 +02:00
fix(format): force ansi256 for template formatting
This commit is contained in:
parent
2d896f777e
commit
f9a40ea2b9
|
@ -54,7 +54,7 @@ func markdown(input string, theme string) (string, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func template(input 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)
|
t, err := tpl.New("tpl").Funcs(f).Parse(input)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", fmt.Errorf("unable to parse template: %w", err)
|
return "", fmt.Errorf("unable to parse template: %w", err)
|
||||||
|
|
Loading…
Reference in a new issue