From 9da65bd2dad6958d749b6a6918e926bfac621f66 Mon Sep 17 00:00:00 2001 From: Toby Padilla Date: Mon, 4 Nov 2019 17:17:36 -0600 Subject: [PATCH] init --- main.go | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 main.go diff --git a/main.go b/main.go new file mode 100644 index 0000000..09b73fe --- /dev/null +++ b/main.go @@ -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)) +}