Enable markdown.HTML option

This commit is contained in:
Peter Stuifzand 2019-02-02 11:02:10 +01:00
parent f37d02b434
commit c67aa6ed4f

View File

@ -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{