Commit 56f61e8c authored by Jae's avatar Jae
Browse files

Use blackfriday v2

parent 928175e8
......@@ -6,6 +6,7 @@ require (
github.com/gin-gonic/gin v1.7.4
github.com/gomarkdown/markdown v0.0.0-20210820032736-385812cbea76
github.com/russross/blackfriday v1.6.0
github.com/russross/blackfriday/v2 v2.1.0
)
require (
......
......@@ -8,7 +8,7 @@ import (
"net/http"
"github.com/gin-gonic/gin"
"github.com/russross/blackfriday"
"github.com/russross/blackfriday/v2"
)
type Post struct {
......@@ -93,7 +93,7 @@ func main() {
return
}
postHTML := template.HTML(blackfriday.MarkdownCommon([]byte(mdfile)))
postHTML := template.HTML(blackfriday.Run([]byte(mdfile)))
post := Post{Title: postName, Content: postHTML}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment