mirror of
https://github.com/rwinkhart/glamour-temp-MUTN.git
synced 2026-10-27 03:29:58 -04:00
Document WithAutoStyle option in README
This commit is contained in:
1 file changed
+3
-1
@@ -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