mirror of
https://github.com/rwinkhart/glamour-temp-MUTN.git
synced 2026-10-26 19:29:56 -04:00
d06339de6f587b8684f8615fe6170ad666f7c36a
Glamour
Write beautiful command-line tools with glamour!
glamour lets you use markdown
templates to render user-friendly & stylish output on ANSI
compatible terminals.
Usage
import "github.com/charmbracelet/glamour"
in := `# Hello World
This is a simple example of glamour!
Check out the [other examples](https://github.com/charmbracelet/glamour/tree/master/examples).
Bye!
`
out, _ := glamour.Render(in, "dark")
fmt.Print(out)
Custom Renderer
import (
"github.com/charmbracelet/glamour"
"github.com/charmbracelet/glamour/ansi"
)
r, _ := glamour.NewTermRenderer("dark", ansi.Options{
WordWrap: int(40),
})
out, _ := r.Render(in)
fmt.Print(out)
Glamourous Projects
Check out Glow, a markdown renderer for
the command-line, which uses glamour.
License
Description
A temporary, hacked together fork of Glamour v0.7.0 to reduce the startup time and binary size of MUTN while other solutions are evaluated.
2.7 MiB
0 Stars
1 Watchers
0 Forks
Languages
Go
98.5%
Shell
1.5%
