Commit a0c4f3df authored by Phil Hughes's avatar Phil Hughes

Fixes issue with markdown snippet not being copyable

On markdown snippets this adds a hidden div with the raw markdown content so that it can be copied

Closes #13882
parent 491ac7ce
- unless @snippet.content.empty? - unless @snippet.content.empty?
- if markup?(@snippet.file_name) - if markup?(@snippet.file_name)
.hidden.blob-content{data: {blob_id: @snippet.id}}
= @snippet.data
.file-content.wiki .file-content.wiki
= render_markup(@snippet.file_name, @snippet.data) = render_markup(@snippet.file_name, @snippet.data)
- else - else
......
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