Document WithAutoStyle option in README

This commit is contained in:
Christian Muehlhaeuser
2020-04-08 10:11:44 +02:00
parent e6a28b4fba
commit 9fa06f7731
+3 -1
View File
@@ -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),
)