Enable markdown.HTML option
This commit is contained in:
parent
f37d02b434
commit
c67aa6ed4f
5
main.go
5
main.go
|
@ -312,7 +312,10 @@ func (h *indexHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||||
return fmt.Sprintf("[%s](/%s)", s, strings.Replace(s, " ", "_", -1))
|
return fmt.Sprintf("[%s](/%s)", s, strings.Replace(s, " ", "_", -1))
|
||||||
})
|
})
|
||||||
|
|
||||||
md := markdown.New(markdown.XHTMLOutput(true))
|
md := markdown.New(
|
||||||
|
markdown.HTML(true),
|
||||||
|
markdown.XHTMLOutput(true),
|
||||||
|
)
|
||||||
pageText = md.RenderToString([]byte(pageText))
|
pageText = md.RenderToString([]byte(pageText))
|
||||||
|
|
||||||
data := indexPage{
|
data := indexPage{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user