Added 'auto' style config

AutoStyleConfig points to either DarkStyleConfig or LightStyleConfig
depending on the current terminal's background color.
This commit is contained in:
Christian Muehlhaeuser
2020-01-14 02:01:22 +01:00
parent 392f5b033b
commit ac879be81a
5 changed files with 28 additions and 4 deletions
+9
View File
@@ -90,6 +90,15 @@ func TestTermRenderer(t *testing.T) {
}
}
func TestStyles(t *testing.T) {
_, err := NewTermRenderer(
WithStandardStyle("auto"),
)
if err != nil {
t.Fatal(err)
}
}
func TestRenderHelpers(t *testing.T) {
in, err := ioutil.ReadFile(markdown)
if err != nil {