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

added html to response

parent 3b9bb25d
...@@ -53,11 +53,11 @@ export default { ...@@ -53,11 +53,11 @@ export default {
<div class="issuable-details"> <div class="issuable-details">
<title-component <title-component
:issuable-ref="currentMergeRequest.iid" :issuable-ref="currentMergeRequest.iid"
:title-html="currentMergeRequest.title" :title-html="currentMergeRequest.title_html"
:title-text="currentMergeRequest.title" :title-text="currentMergeRequest.title"
/> />
<description-component <description-component
:description-html="currentMergeRequest.description" :description-html="currentMergeRequest.description_html"
:description-text="currentMergeRequest.description" :description-text="currentMergeRequest.description"
:can-update="false" :can-update="false"
/> />
......
...@@ -388,6 +388,12 @@ module API ...@@ -388,6 +388,12 @@ module API
expose :id, :iid expose :id, :iid
expose(:project_id) { |entity| entity&.project.try(:id) } expose(:project_id) { |entity| entity&.project.try(:id) }
expose :title, :description 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 expose :state, :created_at, :updated_at
end 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