Commit 6021ab6f authored by Phil Hughes's avatar Phil Hughes

added html to response

parent 3b9bb25d
......@@ -53,11 +53,11 @@ export default {
<div class="issuable-details">
<title-component
:issuable-ref="currentMergeRequest.iid"
:title-html="currentMergeRequest.title"
:title-html="currentMergeRequest.title_html"
:title-text="currentMergeRequest.title"
/>
<description-component
:description-html="currentMergeRequest.description"
:description-html="currentMergeRequest.description_html"
:description-text="currentMergeRequest.description"
:can-update="false"
/>
......
......@@ -388,6 +388,12 @@ module API
expose :id, :iid
expose(:project_id) { |entity| entity&.project.try(:id) }
expose :title, :description
expose :title_html do |entity|
MarkupHelper::markdown_field(entity, :title)
end
expose :description_html do |entity|
MarkupHelper::markdown_field(entity, :description)
end
expose :state, :created_at, :updated_at
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment