okami.mom/glamour

git clone https://git.nkp.pet/okami.mom/glamour

William Martinfeat: add term renderer option for chroma formatter (#395)4c040b7

main
308 B16 linesraw

Usage

import "github.com/charmbracelet/glamour"

in := `# Hello World

This is a simple example of Markdown rendering with Glamour!
Check out the [other examples](https://github.com/charmbracelet/glamour/tree/master/examples) too.

Bye!
`

out, err := glamour.Render(in, "dark")
fmt.Print(out)
1## Usage
2
3```go
4import "github.com/charmbracelet/glamour"
5
6in := `# Hello World
7
8This is a simple example of Markdown rendering with Glamour!
9Check out the [other examples](https://github.com/charmbracelet/glamour/tree/master/examples) too.
10
11Bye!
12`
13
14out, err := glamour.Render(in, "dark")
15fmt.Print(out)
16```