diff options
author | Brett Walker <bwalker@gitlab.com> | 2018-09-02 18:24:27 +0300 |
---|---|---|
committer | Brett Walker <bwalker@gitlab.com> | 2018-09-05 17:19:16 +0300 |
commit | a963721f797b451efec15702e73752c8b8830631 (patch) | |
tree | 46b920a9b5fd0078d5cfdcdecb8e5c16be852f21 /app/views/projects/blob/preview.html.haml | |
parent | e41b99943230240403bdca7b19d5f379892cd819 (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.haml | 3 |
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? |