github.com/charmbracelet/glamour@v0.7.0/examples/helloworld/main.go (about) 1 package main 2 3 import ( 4 "fmt" 5 6 "github.com/charmbracelet/glamour" 7 ) 8 9 func main() { 10 in := `# Hello World 11 12 This is a simple example of Markdown rendering with Glamour! 13 Check out the [other examples](https://github.com/charmbracelet/glamour/tree/master/examples) too. 14 15 Bye! 16 ` 17 18 out, _ := glamour.Render(in, "dark") 19 fmt.Print(out) 20 }