summaryrefslogtreecommitdiff
path: root/app/views/shared/notes
diff options
context:
space:
mode:
authorBrett Walker <bwalker@gitlab.com>2018-07-06 18:49:33 +0000
committerSean McGivern <sean@mcgivern.me.uk>2018-07-06 18:49:33 +0000
commit750af9fd32a050d1d2a8a7c5d014e5467de1e87a (patch)
tree51e5a6d23d6a34541de358c29cb552449c959ed3 /app/views/shared/notes
parent9790fe58e590856e920877a935bfd22942787525 (diff)
downloadgitlab-ce-750af9fd32a050d1d2a8a7c5d014e5467de1e87a.tar.gz
Use proper markdown rendering for previews
Diffstat (limited to 'app/views/shared/notes')
-rw-r--r--app/views/shared/notes/_note.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/shared/notes/_note.html.haml b/app/views/shared/notes/_note.html.haml
index d4e8f30e458..f5464058bc0 100644
--- a/app/views/shared/notes/_note.html.haml
+++ b/app/views/shared/notes/_note.html.haml
@@ -52,7 +52,7 @@
.note-text.md
= markdown_field(note, :note)
= edited_time_ago_with_tooltip(note, placement: 'bottom', html_class: 'note_edited_ago')
- .original-note-content.hidden{ data: { post_url: note_url(note), target_id: note.noteable.id, target_type: note.noteable.class.name.underscore } }
+ .original-note-content.hidden{ data: { post_url: note_url(note), target_id: note.noteable.id, target_type: note.noteable.class.name.underscore, markdown_version: note.cached_markdown_version } }
#{note.note}
- if note_editable
= render 'shared/notes/edit', note: note