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

This commit is contained in:
Mark Woods authored and GitHub committed 2022-10-11 15:43:25 +02:00
1 parent e70ff2d969
commit f74666fece
2 files changed
+2 -6

No files matched your search

+1 -1
View File
@@ -46,7 +46,7 @@ import "github.com/charmbracelet/glamour"
r, _ := glamour.NewTermRenderer( r, _ := glamour.NewTermRenderer(
// detect background color and pick either the default dark or light theme // detect background color and pick either the default dark or light theme
glamour.WithAutoStyle(), glamour.WithAutoStyle(),
// wrap output at specific width // wrap output at specific width (default is 80)
glamour.WithWordWrap(40), glamour.WithWordWrap(40),
) )
+1 -5
View File
@@ -9,11 +9,7 @@ import (
func main() { func main() {
in := `# Custom Renderer in := `# Custom Renderer
Word-wrapping will occur when lines exceed the limit of 40 characters. Just so Word-wrapping will occur when lines exceed the limit of 40 characters.
you know: Glamour's default word-wrapping limit is set to 100 characters per
line.
Bye!
` `
r, _ := glamour.NewTermRenderer( r, _ := glamour.NewTermRenderer(