Skip to content

Commit

Permalink
Document default word wrap of 80 in readme (#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmrwoods committed Oct 11, 2022
1 parent e70ff2d commit f74666f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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),
)

Expand Down
6 changes: 1 addition & 5 deletions examples/custom_renderer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit f74666f

Please sign in to comment.