This commit is contained in:
Toby Padilla 2019-11-04 17:17:36 -06:00
commit 9da65bd2da

28
main.go Normal file
View file

@ -0,0 +1,28 @@
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))
}