From 9fa06f77311e32298ab752645a6bf4c557e5b49a Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Wed, 8 Apr 2020 10:11:44 +0200 Subject: [PATCH] Document WithAutoStyle option in README --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d73864b..00f73ab 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,9 @@ fmt.Print(out) import "github.com/charmbracelet/glamour" r, _ := glamour.NewTermRenderer( - glamour.WithStandardStyle("dark"), + // detect background color and pick either the default dark or light theme + glamour.WithAutoStyle(), + // wrap output at specific width glamour.WithWordWrap(40), )