From 2d53f79f172cf059b42be8438ff91e0a227760a1 Mon Sep 17 00:00:00 2001 From: Umputun Date: Sun, 4 Feb 2018 15:27:23 -0600 Subject: [PATCH] disable md extensions --- app/rest/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/rest/server.go b/app/rest/server.go index f1da4199..aadef818 100644 --- a/app/rest/server.go +++ b/app/rest/server.go @@ -142,7 +142,7 @@ func (s *Server) createCommentCtrl(w http.ResponseWriter, r *http.Request) { comment.User.IP = strings.Split(r.RemoteAddr, ":")[0] // render markdown - comment.Text = string(blackfriday.Run([]byte(comment.Text))) + comment.Text = string(blackfriday.Run([]byte(comment.Text), blackfriday.WithNoExtensions())) log.Printf("[DEBUG] create comment %+v", comment)