summaryrefslogtreecommitdiff
path: root/app/views/projects/blob/_text.html.haml
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-01-08 16:32:03 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-01-08 16:32:03 +0200
commitd6c037de81096680db07397a44a0824355c703c8 (patch)
tree7aecccc578eed1aafa21926ae30304c3a2fa768a /app/views/projects/blob/_text.html.haml
parent03770698417563abe70fdea223700ca370e9f062 (diff)
downloadgitlab-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/projects/blob/_text.html.haml')
-rw-r--r--app/views/projects/blob/_text.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/blob/_text.html.haml b/app/views/projects/blob/_text.html.haml
index bed493d6d8c..d03b53888ae 100644
--- a/app/views/projects/blob/_text.html.haml
+++ b/app/views/projects/blob/_text.html.haml
@@ -4,7 +4,7 @@
= markdown(blob.data)
- elsif markup?(blob.name)
.file-content.wiki
- = raw GitHub::Markup.render(blob.name, blob.data)
+ = render_markup(blob.name, blob.data)
- else
.file-content.code
- unless blob.empty?