mirror of
https://github.com/charmbracelet/glow.git
synced 2026-08-24 09:04:18 +02:00
28 lines
323 B
Go
28 lines
323 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/magicnumbers/gold"
|
|
bf "gopkg.in/russross/blackfriday.v2"
|
|
)
|
|
|
|
const tmd = `
|
|
# Test
|
|
|
|
This is a test yo.
|
|
|
|
## Dude!
|
|
|
|
* one
|
|
* two
|
|
* three
|
|
|
|
[yoda](http://flame.com)
|
|
`
|
|
|
|
func main() {
|
|
r := gold.TermRenderer{}
|
|
out := bf.Run([]byte(tmd), bf.WithRenderer(&r))
|
|
fmt.Println(string(out))
|
|
}
|