mirror of
https://github.com/rwinkhart/glamour-temp-MUTN.git
synced 2026-09-06 08:57:14 -04:00
Added 'auto' style config
AutoStyleConfig points to either DarkStyleConfig or LightStyleConfig depending on the current terminal's background color.
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user