Christian Muehlhaeuser ac879be81a Added 'auto' style config
AutoStyleConfig points to either DarkStyleConfig or LightStyleConfig
depending on the current terminal's background color.
2020-01-14 02:01:22 +01:00
2020-01-14 02:01:22 +01:00
2019-12-28 02:55:20 +01:00
2020-01-06 08:31:51 +01:00
2019-12-19 00:43:46 +01:00
2019-12-20 22:55:00 +01:00
2019-12-20 22:55:00 +01:00
2020-01-14 02:01:22 +01:00
2020-01-14 02:01:22 +01:00
2020-01-14 02:01:22 +01:00
2019-11-15 12:27:41 -06:00
2020-01-09 15:56:54 +01:00
2020-01-14 02:01:22 +01:00

Glamour

Latest Release GoDoc Build Status Coverage Status Go ReportCard

Write handsome 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)

HelloWorld Example

Custom Renderer

import "github.com/charmbracelet/glamour"

r, _ := glamour.NewTermRenderer(
	glamour.WithStandardStyle("dark"),
	glamour.WithWordWrap(40),
)

out, _ := r.Render(in)
fmt.Print(out)

Glamourous Projects

Check out Glow, a markdown renderer for the command-line, which uses glamour.

License

MIT

S
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.
Readme MIT
2.6 MiB
Languages
Go 98.5%
Shell 1.5%