Use TrueColor color profile as default

Users can override the desired profile by calling WithColorProfile.
This commit is contained in:
Christian Muehlhaeuser
2020-02-10 14:28:08 +01:00
parent a2997cbe4a
commit 8d4e3f0692
12 changed files with 59 additions and 46 deletions
+5 -2
View File
@@ -8,6 +8,7 @@ import (
"strings"
"testing"
"github.com/muesli/termenv"
"github.com/yuin/goldmark"
"github.com/yuin/goldmark/extension"
"github.com/yuin/goldmark/parser"
@@ -43,7 +44,8 @@ func TestRenderer(t *testing.T) {
}
options := Options{
WordWrap: 80,
WordWrap: 80,
ColorProfile: termenv.TrueColor,
}
err = json.Unmarshal(b, &options.Styles)
if err != nil {
@@ -113,7 +115,8 @@ func TestRendererIssues(t *testing.T) {
}
options := Options{
WordWrap: 80,
WordWrap: 80,
ColorProfile: termenv.TrueColor,
}
err = json.Unmarshal(b, &options.Styles)
if err != nil {