okami.mom/glamour

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

Ayman BagabasMerge pull request #408 from charmbracelet/v2-expcf874d7

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