Document default word wrap of 80 in readme (#162)

This commit is contained in:
Mark Woods
2022-10-11 15:43:25 +02:00
committed by GitHub
parent e70ff2d969
commit f74666fece
2 changed files with 2 additions and 6 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ import "github.com/charmbracelet/glamour"
r, _ := glamour.NewTermRenderer(
// detect background color and pick either the default dark or light theme
glamour.WithAutoStyle(),
// wrap output at specific width
// wrap output at specific width (default is 80)
glamour.WithWordWrap(40),
)
+1 -5
View File
@@ -9,11 +9,7 @@ import (
func main() {
in := `# Custom Renderer
Word-wrapping will occur when lines exceed the limit of 40 characters. Just so
you know: Glamour's default word-wrapping limit is set to 100 characters per
line.
Bye!
Word-wrapping will occur when lines exceed the limit of 40 characters.
`
r, _ := glamour.NewTermRenderer(