mirror of
https://github.com/charmbracelet/glow
synced 2024-11-10 14:14:17 +00:00
Move ANSIRenderer into a separate package
This commit is contained in:
parent
3ddece16e4
commit
cbf61974bf
1 changed files with 2 additions and 1 deletions
3
main.go
3
main.go
|
@ -14,6 +14,7 @@ import (
|
|||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/charmbracelet/gold"
|
||||
"github.com/charmbracelet/gold/ansi"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -126,7 +127,7 @@ func execute(cmd *cobra.Command, args []string) error {
|
|||
u.Path = filepath.Dir(u.Path)
|
||||
}
|
||||
|
||||
r, err := gold.NewTermRenderer(style, gold.Options{
|
||||
r, err := gold.NewTermRenderer(style, ansi.Options{
|
||||
BaseURL: u.String() + "/",
|
||||
WordWrap: int(width),
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue