invoke img proxy on preview

This commit is contained in:
Umputun
2018-05-18 02:13:46 -05:00
parent 7a4b06aa61
commit 8c569d2771
+1
View File
@@ -214,6 +214,7 @@ func (s *Rest) previewCommentCtrl(w http.ResponseWriter, r *http.Request) {
//comment.Text = string(blackfriday.Run([]byte(comment.Text),
// blackfriday.WithRenderer(bfchroma.NewRenderer(bfchroma.WithoutAutodetect()))))
comment.Text = string(blackfriday.Run([]byte(comment.Text), blackfriday.WithExtensions(mdExt)))
comment.Text = s.ImageProxy.Convert(comment.Text)
comment.Sanitize()
render.HTML(w, r, comment.Text)
}