diff --git a/app/views/projects/commits/_commit.html.haml b/app/views/projects/commits/_commit.html.haml
index abe0d4cff463172253334da5bec5a30c04d9ed13..8e73663939f70684876b123abec1b5b34970b947 100644
--- a/app/views/projects/commits/_commit.html.haml
+++ b/app/views/projects/commits/_commit.html.haml
@@ -23,7 +23,7 @@
   - if commit.description?
     .commit-row-description.js-toggle-content
       %pre
-        = commit.description
+        = preserve(gfm(escape_once(commit.description)))
 
   .commit-row-info
     = commit_author_link(commit, avatar: true, size: 16)