Skip to content
Snippets Groups Projects
Commit a0c4f3df authored by Phil Hughes's avatar Phil Hughes
Browse files

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
No related branches found
No related tags found
No related merge requests found
- unless @snippet.content.empty?
- if markup?(@snippet.file_name)
.hidden.blob-content{data: {blob_id: @snippet.id}}
= @snippet.data
.file-content.wiki
= render_markup(@snippet.file_name, @snippet.data)
- else
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment