mirror of
https://github.com/rwinkhart/glamour-temp-MUTN.git
synced 2026-09-01 14:37:28 -04:00
Document WithAutoStyle option in README
This commit is contained in:
@@ -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),
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user