mirror of
https://github.com/charmbracelet/glow.git
synced 2026-08-22 08:04:18 +02:00
Import glamour
This commit is contained in:
parent
969b3d5a77
commit
6a8462e414
1 changed files with 3 additions and 3 deletions
6
main.go
6
main.go
|
|
@ -13,8 +13,8 @@ import (
|
|||
"github.com/mattn/go-isatty"
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/charmbracelet/gold"
|
||||
"github.com/charmbracelet/gold/ansi"
|
||||
"github.com/charmbracelet/glamour"
|
||||
"github.com/charmbracelet/glamour/ansi"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
@ -127,7 +127,7 @@ func execute(cmd *cobra.Command, args []string) error {
|
|||
u.Path = filepath.Dir(u.Path)
|
||||
}
|
||||
|
||||
r, err := gold.NewTermRenderer(style, ansi.Options{
|
||||
r, err := glamour.NewTermRenderer(style, ansi.Options{
|
||||
BaseURL: u.String() + "/",
|
||||
WordWrap: int(width),
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue