summaryrefslogtreecommitdiff
path: root/lib/api/markdown.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api/markdown.rb')
-rw-r--r--lib/api/markdown.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/markdown.rb b/lib/api/markdown.rb
index de77bef43ce..41bddc820fb 100644
--- a/lib/api/markdown.rb
+++ b/lib/api/markdown.rb
@@ -12,7 +12,7 @@ module API
detail "This feature was introduced in GitLab 11.0."
end
post do
- context = { only_path: false, current_user: current_user }
+ context = {only_path: false, current_user: current_user}
context[:pipeline] = params[:gfm] ? :full : :plain_markdown
if params[:project]
@@ -25,7 +25,7 @@ module API
context[:skip_project_check] = true
end
- { html: Banzai.render_and_post_process(params[:text], context) }
+ {html: Banzai.render_and_post_process(params[:text], context)}
end
end
end