mirror of
https://github.com/rwinkhart/glamour-temp-MUTN.git
synced 2026-10-28 20:18:16 -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:
5 files changed
+28
-4
No files matched your search
@@ -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