mirror of
https://github.com/rwinkhart/glamour-temp-MUTN.git
synced 2026-10-28 12:09:59 -04:00
Use TrueColor color profile as default
Users can override the desired profile by calling WithColorProfile.
This commit is contained in:
1 parent
a2997cbe4a
commit
8d4e3f0692
12 files changed
+59
-46
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user