diff --git a/README.md b/README.md index a3a686e..40bbe79 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ Bye! ` out, _ := glamour.Render(in, "dark") -fmt.Printf(out) +fmt.Print(out) ``` ![HelloWorld Example](https://github.com/charmbracelet/glamour/raw/master/examples/helloworld/helloworld.png) @@ -36,21 +36,12 @@ import ( "github.com/charmbracelet/glamour/ansi" ) -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! -` - r, _ := glamour.NewTermRenderer("dark", ansi.Options{ WordWrap: int(40), }) out, _ := r.Render(in) -fmt.Printf("%s", out) +fmt.Print(out) } ``` diff --git a/examples/custom_renderer/main.go b/examples/custom_renderer/main.go index ccc4b66..32f51ea 100644 --- a/examples/custom_renderer/main.go +++ b/examples/custom_renderer/main.go @@ -22,5 +22,5 @@ Bye! }) out, _ := r.Render(in) - fmt.Printf("%s", out) + fmt.Print(out) } diff --git a/examples/helloworld/main.go b/examples/helloworld/main.go index e179e12..535b28c 100644 --- a/examples/helloworld/main.go +++ b/examples/helloworld/main.go @@ -16,5 +16,5 @@ Bye! ` out, _ := glamour.Render(in, "dark") - fmt.Printf(out) + fmt.Print(out) }