Unverified Commit 982775f6 authored by Sheogorath's avatar Sheogorath
Browse files

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: default avatarSheogorath <sheogorath@shivering-isles.com>
parent 329d39d0
...@@ -1134,7 +1134,7 @@ const emojijsPlugin = new Plugin( ...@@ -1134,7 +1134,7 @@ const emojijsPlugin = new Plugin(
(match, utils) => { (match, utils) => {
const emoji = match[1].toLowerCase() 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 return div[0].outerHTML
} }
) )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment