diff options
author | Eric Eastwood <contact@ericeastwood.com> | 2017-03-06 20:59:26 +0300 |
---|---|---|
committer | Eric Eastwood <contact@ericeastwood.com> | 2017-03-07 00:19:33 +0300 |
commit | 96cbad23378e492f2564a8ec4121b7b3548a7df3 (patch) | |
tree | 1f39f33940e914965d2f288f7f4d99fd592acd1d /app/assets/javascripts/copy_as_gfm.js | |
parent | f602efea65c2a816c7e29be546d2eb412fe538cc (diff) |
Fix up @DouweM review
Diffstat (limited to 'app/assets/javascripts/copy_as_gfm.js')
-rw-r--r-- | app/assets/javascripts/copy_as_gfm.js | 3 |
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 7e63d6ea07b..ba8ed19e9da 100644 --- a/app/assets/javascripts/copy_as_gfm.js +++ b/app/assets/javascripts/copy_as_gfm.js @@ -46,6 +46,9 @@ require('./lib/utils/common_utils'); }, }, EmojiFilter: { + 'img.emoji'(el, text) { + return el.getAttribute('alt'); + }, 'gl-emoji'(el, text) { return `:${el.getAttribute('data-name')}:`; }, |