mirror of
https://github.com/avelino/awesome-go.git
synced 2024-11-07 16:33:40 +00:00
Merge branch 'master' of https://github.com/avelino/awesome-go
This commit is contained in:
commit
1c5f0e50da
@ -9,3 +9,4 @@ install:
|
|||||||
- go get github.com/russross/blackfriday
|
- go get github.com/russross/blackfriday
|
||||||
- go get github.com/PuerkitoBio/goquery
|
- go get github.com/PuerkitoBio/goquery
|
||||||
- go get github.com/gorilla/mux
|
- go get github.com/gorilla/mux
|
||||||
|
- go get github.com/microcosm-cc/bluemonday
|
||||||
|
17
repo.go
17
repo.go
@ -8,6 +8,7 @@ import (
|
|||||||
"text/template"
|
"text/template"
|
||||||
|
|
||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
|
"github.com/microcosm-cc/bluemonday"
|
||||||
"github.com/russross/blackfriday"
|
"github.com/russross/blackfriday"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -59,14 +60,16 @@ func generateHTML() {
|
|||||||
|
|
||||||
input, _ := ioutil.ReadFile(readmePath)
|
input, _ := ioutil.ReadFile(readmePath)
|
||||||
body := string(
|
body := string(
|
||||||
blackfriday.Markdown(
|
bluemonday.UGCPolicy().SanitizeBytes(
|
||||||
input,
|
blackfriday.Markdown(
|
||||||
blackfriday.HtmlRenderer(
|
input,
|
||||||
bfHTMLRendererOpts,
|
blackfriday.HtmlRenderer(
|
||||||
emtyStr,
|
bfHTMLRendererOpts,
|
||||||
emtyStr,
|
emtyStr,
|
||||||
|
emtyStr,
|
||||||
|
),
|
||||||
|
bfMDOpts,
|
||||||
),
|
),
|
||||||
bfMDOpts,
|
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
c := &content{Body: body}
|
c := &content{Body: body}
|
||||||
|
Loading…
Reference in New Issue
Block a user