diff options
author | Sheogorath | 2019-03-09 15:03:53 +0100 |
---|---|---|
committer | Sheogorath | 2019-03-09 15:04:07 +0100 |
commit | 982775f6dc12f36bc3857e6d1f9816483f0c71b1 (patch) | |
tree | aa3a3800a0c9550ef3e9ae3a72759f9ea7810dca /public | |
parent | 329d39d0d00ce7c15b8b7ad7b9a4e0338835486d (diff) |
Fix broken HTML export with emojis
HTML export was broken due to missing alt-attribute for emojis.
This patch adds the old alt-element style and restores the exportability
this way.
Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
Diffstat (limited to 'public')
-rw-r--r-- | public/js/extra.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/public/js/extra.js b/public/js/extra.js index f8e0eb22..b80290d1 100644 --- a/public/js/extra.js +++ b/public/js/extra.js @@ -1134,7 +1134,7 @@ const emojijsPlugin = new Plugin( (match, utils) => { const emoji = match[1].toLowerCase() - const div = $(`<img class="emoji" src="${serverurl}/build/emojify.js/dist/images/basic/${emoji}.png"></img>`) + const div = $(`<img class="emoji" alt=":${emoji}:" src="${serverurl}/build/emojify.js/dist/images/basic/${emoji}.png"></img>`) return div[0].outerHTML } ) |