mirror of
https://github.com/rwinkhart/glamour-temp-MUTN.git
synced 2026-09-06 00:47:15 -04:00
Format README example
This commit is contained in:
@@ -27,7 +27,7 @@ Check out the [other examples](https://github.com/charmbracelet/glamour/tree/mas
|
|||||||
Bye!
|
Bye!
|
||||||
`
|
`
|
||||||
|
|
||||||
out, _ := glamour.Render(in, "dark")
|
out, err := glamour.Render(in, "dark")
|
||||||
fmt.Print(out)
|
fmt.Print(out)
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -39,13 +39,13 @@ fmt.Print(out)
|
|||||||
import "github.com/charmbracelet/glamour"
|
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
|
||||||
glamour.WithWordWrap(40),
|
glamour.WithWordWrap(40),
|
||||||
)
|
)
|
||||||
|
|
||||||
out, _ := r.Render(in)
|
out, err := r.Render(in)
|
||||||
fmt.Print(out)
|
fmt.Print(out)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user