Files
glamour-temp-MUTN/examples/helloworld/main.go
T

21 lines
332 B
Go

package main
import (
"fmt"
"github.com/charmbracelet/glamour"
)
func main() {
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, _ := glamour.Render(in, "dark")
fmt.Print(out)
}