mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-20 18:16:45 +10:00
Rescue if markup fails, fixes #7455
This commit is contained in:
@@ -222,6 +222,8 @@ module ApplicationHelper
|
||||
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user