Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrett Walker <bwalker@gitlab.com>2018-09-02 18:24:27 +0300
committerBrett Walker <bwalker@gitlab.com>2018-09-05 17:19:16 +0300
commita963721f797b451efec15702e73752c8b8830631 (patch)
tree46b920a9b5fd0078d5cfdcdecb8e5c16be852f21 /app/views/projects/blob/preview.html.haml
parente41b99943230240403bdca7b19d5f379892cd819 (diff)
render using RedCarpet if legacy_render parameter is set
Diffstat (limited to 'app/views/projects/blob/preview.html.haml')
-rw-r--r--app/views/projects/blob/preview.html.haml3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/projects/blob/preview.html.haml b/app/views/projects/blob/preview.html.haml
index da2cef17e8a..da29eb7a133 100644
--- a/app/views/projects/blob/preview.html.haml
+++ b/app/views/projects/blob/preview.html.haml
@@ -2,7 +2,8 @@
.diff-content
- if markup?(@blob.name)
.file-content.wiki
- = markup(@blob.name, @content)
+ - context = params[:legacy_render] ? { markdown_engine: :redcarpet} : {}
+ = markup(@blob.name, @content, context)
- else
.file-content.code.js-syntax-highlight
- unless @diff_lines.empty?