markdown test
This commit is contained in:
19
main.go
Normal file
19
main.go
Normal file
@@ -0,0 +1,19 @@
|
||||
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))
|
||||
}
|
||||
Reference in New Issue
Block a user