summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/copy_as_gfm.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/copy_as_gfm.js')
-rw-r--r--app/assets/javascripts/copy_as_gfm.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/assets/javascripts/copy_as_gfm.js b/app/assets/javascripts/copy_as_gfm.js
index 16bdb4db5af..8883c339335 100644
--- a/app/assets/javascripts/copy_as_gfm.js
+++ b/app/assets/javascripts/copy_as_gfm.js
@@ -49,6 +49,9 @@ require('./lib/utils/common_utils');
'img.emoji'(el, text) {
return el.getAttribute('alt');
},
+ 'gl-emoji'(el, text) {
+ return `:${el.getAttribute('data-name')}:`;
+ },
},
ImageLinkFilter: {
'a.no-attachment-icon'(el, text) {