mark2web/main.go
Sebastian Frank 291c1315ef
markdown test
2019-02-10 13:49:27 +01:00

20 lines
316 B
Go

package main
import (
"fmt"
"io/ioutil"
"github.com/Depado/bfchroma"
"gopkg.in/russross/blackfriday.v2"
)
func main() {
input, err := ioutil.ReadFile("README.md")
if err != nil {
panic(err)
}
html := blackfriday.Run(input, blackfriday.WithRenderer(bfchroma.NewRenderer()))
fmt.Println(string(html))
}