diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-01-08 16:32:03 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-01-08 16:32:03 +0200 |
commit | d6c037de81096680db07397a44a0824355c703c8 (patch) | |
tree | 7aecccc578eed1aafa21926ae30304c3a2fa768a /app/views/snippets | |
parent | 03770698417563abe70fdea223700ca370e9f062 (diff) | |
download | gitlab-ce-d6c037de81096680db07397a44a0824355c703c8.tar.gz |
Dont render README with markup if format is not compatible
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/views/snippets')
-rw-r--r-- | app/views/snippets/_blob.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/snippets/_blob.html.haml b/app/views/snippets/_blob.html.haml index e0152143a95..e6ae33f38f3 100644 --- a/app/views/snippets/_blob.html.haml +++ b/app/views/snippets/_blob.html.haml @@ -15,7 +15,7 @@ = markdown(@snippet.data) - elsif markup?(@snippet.file_name) .file-content.wiki - = raw GitHub::Markup.render(@snippet.file_name, @snippet.data) + = render_markup(@snippet.file_name, @snippet.data) - else .file-content.code %div{class: user_color_scheme_class} |