no md extensions for edit as well

This commit is contained in:
Umputun
2018-02-04 15:31:15 -06:00
parent e9219d03d1
commit e7b4b10c0f
+1 -1
View File
@@ -186,7 +186,7 @@ func (s *Server) updateCommentCtrl(w http.ResponseWriter, r *http.Request) {
id := chi.URLParam(r, "id")
// render markdown
edit.Text = string(blackfriday.Run([]byte(edit.Text)))
edit.Text = string(blackfriday.Run([]byte(edit.Text), blackfriday.WithNoExtensions()))
log.Printf("[DEBUG] update comment %s, %+v", id, edit)