mirror of
https://github.com/rwinkhart/glamour-temp-MUTN.git
synced 2026-09-06 00:47:15 -04:00
Document default word wrap of 80 in readme (#162)
This commit is contained in:
@@ -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),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user