disable md extensions

This commit is contained in:
Umputun
2018-02-04 15:27:23 -06:00
parent 8b813e4820
commit 2d53f79f17
+1 -1
View File
@@ -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)