From c67aa6ed4ffcb31ba590356293b48021602ea011 Mon Sep 17 00:00:00 2001 From: Peter Stuifzand Date: Sat, 2 Feb 2019 11:02:10 +0100 Subject: [PATCH] Enable markdown.HTML option --- main.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 0e9acf4..7864031 100644 --- a/main.go +++ b/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)) }) - md := markdown.New(markdown.XHTMLOutput(true)) + md := markdown.New( + markdown.HTML(true), + markdown.XHTMLOutput(true), + ) pageText = md.RenderToString([]byte(pageText)) data := indexPage{