mirror of
https://github.com/rwinkhart/glamour-temp-MUTN.git
synced 2026-09-06 00:47:15 -04:00
Document WithAutoStyle option in README
This commit is contained in:
@@ -38,7 +38,9 @@ fmt.Print(out)
|
|||||||
import "github.com/charmbracelet/glamour"
|
import "github.com/charmbracelet/glamour"
|
||||||
|
|
||||||
r, _ := glamour.NewTermRenderer(
|
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),
|
glamour.WithWordWrap(40),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user