diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index c3d89eb1b82d59cb3bdc55fa3f5f35ad44b9f3af..ce1d0538b8356affd4d4074998ef908d766003a0 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -222,6 +222,8 @@ def time_ago_with_tooltip(date, placement = 'top', html_class = 'time_ago')
 
   def render_markup(file_name, file_content)
     GitHub::Markup.render(file_name, file_content).html_safe
+  rescue RuntimeError
+    simple_format(file_content)
   end
 
   def spinner(text = nil, visible = false)