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.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/copy_as_gfm.js b/app/assets/javascripts/copy_as_gfm.js
index 2bc3d85fba4..7e63d6ea07b 100644
--- a/app/assets/javascripts/copy_as_gfm.js
+++ b/app/assets/javascripts/copy_as_gfm.js
@@ -46,8 +46,8 @@ require('./lib/utils/common_utils');
},
},
EmojiFilter: {
- 'img.emoji'(el, text) {
- return el.getAttribute('alt');
+ 'gl-emoji'(el, text) {
+ return `:${el.getAttribute('data-name')}:`;
},
},
ImageLinkFilter: {